From be27a6d3a37421e9a473dc18d36d4df66d62be52 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Thu, 18 Apr 2024 05:04:43 +0300 Subject: [PATCH] Correct cmdline.txt and fstab editing for the new OS version --- builder/image-init.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/builder/image-init.sh b/builder/image-init.sh index 51985e80f..a0f46f3a9 100755 --- a/builder/image-init.sh +++ b/builder/image-init.sh @@ -48,8 +48,12 @@ 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 vfat defaults 0 2$/\/dev\/mmcblk0p1 \/boot vfat defaults 0 2/' /etc/fstab +sed -i 's/root=[^ ]*/root=\/dev\/mmcblk0p2/' /boot/firmware/cmdline.txt +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 /boot/firmware/cmdline.txt +cat /etc/fstab echo_stamp "Set max space for syslogs" # https://unix.stackexchange.com/questions/139513/how-to-clear-journalctl