Skip to content

Commit

Permalink
Correct cmdline.txt and fstab editing for the new OS version
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Apr 18, 2024
1 parent d8c26c1 commit be27a6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion builder/image-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be27a6d

Please sign in to comment.