From: Thierry Parmentelat Date: Tue, 12 Feb 2013 16:20:20 +0000 (+0100) Subject: avoid systemctl mask and do the job manually instead X-Git-Tag: 5.2.1~60 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f910233fe61b7bc5ba07b67443c9da360f376d43;p=build.git avoid systemctl mask and do the job manually instead --- diff --git a/vbuild-init-lxc.sh b/vbuild-init-lxc.sh index 91d256eb..4a06946b 100755 --- a/vbuild-init-lxc.sh +++ b/vbuild-init-lxc.sh @@ -262,9 +262,9 @@ function configure_fedora_init() { function configure_fedora_systemd() { unlink ${rootfs_path}/etc/systemd/system/default.target - chroot ${rootfs_path} ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target + ln -s /lib/systemd/system/multi-user.target ${rootfs_path}/etc/systemd/system/default.target touch ${rootfs_path}/etc/fstab - chroot ${rootfs_path} systemctl mask udev.service + ln -s /dev/null ${rootfs_path}/etc/systemd/system/udev.service # Thierry - Feb 2013 # this was intended for f16 initially, in order to enable getty that otherwise would not start # having a getty running is helpful only if ssh won't start though, and we see a correlation between @@ -272,7 +272,7 @@ function configure_fedora_systemd() { # so, turning getty off for now instead # #dependency on a device unit fails it specially that we disabled udev # sed -i 's/After=dev-%i.device/After=/' ${rootfs_path}/lib/systemd/system/getty\@.service - chroot ${rootfs_path} systemctl mask getty\@.service + ln -s /dev/null ${rootfs_path}/etc/systemd/system/"getty\@.service" chroot ${rootfs_path} chkconfig network on }