- sed -i 's|.sbin.start_udev||' ${rootfs_path}/etc/rc.sysinit
- sed -i 's|.sbin.start_udev||' ${rootfs_path}/etc/rc.d/rc.sysinit
- # don't mount devpts, for pete's sake
- sed -i 's/^.*dev.pts.*$/#\0/' ${rootfs_path}/etc/rc.sysinit
- sed -i 's/^.*dev.pts.*$/#\0/' ${rootfs_path}/etc/rc.d/rc.sysinit
- chroot ${rootfs_path} /sbin/chkconfig udev-post off
- chroot ${rootfs_path} /sbin/chkconfig network on
-}
-
-# this code of course is for guests that do run on systemd
-function configure_fedora_systemd() {
- # so ignore if we can't find /etc/systemd at all
- [ -d ${rootfs_path}/etc/systemd ] || return 0
- # otherwise let's proceed
- ln -sf /lib/systemd/system/multi-user.target ${rootfs_path}/etc/systemd/system/default.target
- touch ${rootfs_path}/etc/fstab
- ln -sf /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 -sf /dev/null ${rootfs_path}/etc/systemd/system/"getty@.service"
- rm -f ${rootfs_path}/etc/systemd/system/getty.target.wants/*service || :
-# can't seem to handle this one with systemctl
- chroot ${rootfs_path} /sbin/chkconfig network on
-}
-
-function download_fedora() {
-set -x