From 2c62fa35836699e9112fcd2459404ee9a2399b20 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Thu, 18 Apr 2024 06:08:50 +0300 Subject: [PATCH] Fix work with fstab --- builder/image-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/image-init.sh b/builder/image-init.sh index 3f22f0f74..29c559fcb 100755 --- a/builder/image-init.sh +++ b/builder/image-init.sh @@ -48,7 +48,7 @@ sed -i "19a${MAGIC_SCRIPT}" /etc/rc.local # It needs for autosizer.sh & maybe that is correct echo_stamp "Change boot partition" sed -i 's/root=[^ ]*/root=\/dev\/mmcblk0p2/' /boot/cmdline.txt -sed -i 's/.* \/boot/firmware vfat defaults 0 2$/\/dev\/mmcblk0p1 \/boot/firmware vfat defaults 0 2/' /etc/fstab +sed -i 's/.* \/boot\/firmware vfat defaults 0 2$/\/dev\/mmcblk0p1 \/boot/firmware vfat defaults 0 2/' /etc/fstab sed -i 's/.* \/ ext4 defaults,noatime 0 1$/\/dev\/mmcblk0p2 \/ ext4 defaults,noatime 0 1/' /etc/fstab cat /boot/cmdline.txt cat /etc/fstab