Skip to content

Commit

Permalink
core/linux-rpi: update $pkgbase.install
Browse files Browse the repository at this point in the history
Fix syntax for /etc/fstab check and run it in post_install to cover users coming
from linux-aarch64
  • Loading branch information
graysky2 committed Nov 29, 2021
1 parent f2c0dba commit 70a4cb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/linux-rpi/linux-rpi.install
Expand Up @@ -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() {
Expand Down

0 comments on commit 70a4cb1

Please sign in to comment.