X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vbuild-init-lxc.sh;h=78585fba84831b685f2f7fb82929d66679984eb7;hb=67d008d2f55ba2ec0b36b4493e27c94c8ab37149;hp=4b21275f868d4667ecab301f8488deb9cfa1ef91;hpb=256a5fb81aaffc63a077fcc43d861008c79faa7c;p=build.git diff --git a/vbuild-init-lxc.sh b/vbuild-init-lxc.sh index 4b21275f..78585fba 100755 --- a/vbuild-init-lxc.sh +++ b/vbuild-init-lxc.sh @@ -261,13 +261,19 @@ function configure_fedora_init() { function configure_fedora_systemd() { - unlink ${rootfs_path}/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} ln -s /dev/null //etc/systemd/system/udev.service - chroot ${rootfs_path} ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target - #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 + 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 +# VM's that refuse to lxc-stop and VM's that run crazy getty's +# 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 + ln -s /dev/null ${rootfs_path}/etc/systemd/system/"getty@.service" + ln -s /dev/null ${rootfs_path}/usr/lib/systemd/system/"getty@.service" chroot ${rootfs_path} chkconfig network on }