Skip to content

Commit

Permalink
Remove editing /boot/firmware/cmdline.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Apr 18, 2024
1 parent be27a6d commit 8dcdae1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions builder/image-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@ 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/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"
Expand Down

0 comments on commit 8dcdae1

Please sign in to comment.