Skip to content

Instantly share code, notes, and snippets.

@frieder
Created October 8, 2017 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frieder/42af600026d089b3871e2aab4fad183c to your computer and use it in GitHub Desktop.
Save frieder/42af600026d089b3871e2aab4fad183c to your computer and use it in GitHub Desktop.
Remove systemd restriction from Proxmox DAB
This snippet is a response to https://bitbucket.org/flybyte/dab-templates to enable Proxmox DAB to
create Debian LXC templates that use systemd as the default init system. Following are the instructions
on what to do to get DAB creating a systemd LXC Debian template.
===
# Make a copy of DAB.pm
cp /usr/share/perl5/PVE/DAB.pm /usr/share/perl5/PVE/DAB.pm.bak
---
# edit the DAB file
vim /usr/share/perl5/PVE/DAB.pm
---
# comment line 461
result: # push @$incl, 'sysvinit-core'; # avoid systemd and udev
---
# Remove systemd, systemd-sysv and udev exclusions from line 463
result: push @$excl, qw(module-init-tools pciutils hdparm
---
# edit the DAB make file
vim /path/to/dab-templates/debian85_salt/Makefile
---
# install systemd and systemd-sysv during template creation (make sure all lines start with a tab).
result: dab bootstrap --minimal
dab install systemd systemd-sysv
[..]
---
# Create the template as instructed at https://bitbucket.org/flybyte/dab-templates.
---
# Revert the changes made to DAB.pm
rm /usr/share/perl5/PVE/DAB.pm
cp /usr/share/perl5/PVE/DAB.pm.bak /usr/share/perl5/PVE/DAB.pm
===
Enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment