core/linux-rpi: update $pkgbase.install

Fix syntax for /etc/fstab check and run it in post_install to cover users coming
from linux-aarch64
This commit is contained in:
graysky 2021-11-29 02:01:05 -05:00
parent f2c0dbac13
commit 70a4cb1c78

View file

@ -11,13 +11,16 @@ correct_fstab() {
# starting with v5.10.y, fstab requires a padded zero in the path to /boot
if [[ -f /etc/fstab ]]; then
if grep -q mmcblk1p1 /etc/fstab; then
sed -i 's/mmcblk1p1/mmcblk01p1/' /etc/fstab
sed -i 's/mmcblk1p1/mmcblk0p1/' /etc/fstab
fi
fi
}
post_install () {
disable_cma
# coming from linux-aarch64 also needs a padded zero in the path to /boot
correct_fstab
}
post_upgrade() {