Fix work with fstab

This commit is contained in:
Oleg Kalachev
2024-04-18 06:08:50 +03:00
parent 8dcdae1259
commit 2c62fa3583

View File

@@ -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