From 0b6b7610605d54cd203ba249fc48804d2bec5337 Mon Sep 17 00:00:00 2001 From: Andrey Sokolov Date: Tue, 3 Aug 2021 15:29:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BE=D0=B1=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B5=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D0=B2=D0=BE=D0=B4=D0=B0=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=B4=D0=B8=D1=81=D0=BA=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alt_on_ostree.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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