Remove unneeded workaround for dracut<027.

This commit is contained in:
Juan RP 2013-04-28 09:35:44 +02:00
parent a5068a6292
commit f58d6cd5e5
1 changed files with 0 additions and 10 deletions

View File

@ -40,14 +40,6 @@ error_out() {
exit 1
}
umount_kernel_fs() {
for f in sys/fs/cgroup/systemd sys/fs/cgroup dev/shm dev/pts dev proc sys run; do
if [ -d $ROOTFS/kernel_temp/$f ]; then
umount $ROOTFS/kernel_temp/$f || true
fi
done
}
write_etc_motd() {
cat >> "$ROOTFS/etc/motd" <<_EOF
###############################################################################
@ -158,8 +150,6 @@ generate_initramfs() {
--add " dmsquash-live vmklive " --${COMPRESSTYPE} \
"/boot/initrd.lz" >>$LOGFILE 2>&1
umount_kernel_fs
mv $ROOTFS/kernel_temp/boot/initrd.lz $BOOT_DIR
# We rely on pam now, so let's install the host login config.
install -Dm644 $ROOTFS/kernel_temp/etc/pam.d/login \