mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
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:
parent
f2c0dbac13
commit
70a4cb1c78
1 changed files with 4 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue