diff --git a/alt_on_ostree.md b/alt_on_ostree.md index 46fb50a..6dd3479 100644 --- a/alt_on_ostree.md +++ b/alt_on_ostree.md @@ -17,6 +17,7 @@ mkdir root sudo tar xf out/acos-latest-x86_64.tar -C root/ --exclude=./dev/tty --exclude=./dev/tty0 --exclude=./dev/console --exclude=./dev/urandom --exclude=./dev/random --exclude=./dev/full --exclude=./dev/zero --exclude=/dev/null --exclude=./dev/pts/ptmx --exclude=./dev/null sudo chroot root/ systemctl enable ignition-firstboot-complete.service sshd sudo sed -i 's/^LABEL=ROOT\t/LABEL=boot\t/g' root/etc/fstab +echo "blacklist floppy" | sudo tee root/etc/modprobe.d/blacklist-floppy.conf sudo mkdir root/sysroot sudo ln -s sysroot/ostree root/ostree sudo chroot root/ chown :wheel /usr/bin/sudo /bin/su @@ -28,7 +29,7 @@ SHA=`sudo sha256sum "$KERNEL" | awk '{print $1;}'` sudo mv "$KERNEL" "$KERNEL-$SHA" sudo rm -f root/boot/vmlinuz sudo rm -f root/boot/initrd* -sudo chroot root/ dracut --reproducible --gzip -v --add ignition --add ostree -f /boot/initramfs-$SHA --no-hostonly --omit=nfs --omit=lvm --omit=iscsi --kver `ls root/lib/modules` +sudo chroot root/ dracut --reproducible --gzip -v --add ignition --add ostree -f /boot/initramfs-$SHA --no-hostonly --omit-drivers=floppy --omit=nfs --omit=lvm --omit=iscsi --kver `ls root/lib/modules` sudo rm -rf root/usr/etc sudo mv root/etc root/usr/etc