main/postmarketos-base: fixup old /etc/fstab entries with multiple bugs (MR 5089)
See pmbootstrap!2304
This commit is contained in:
parent
28e58a9cda
commit
3909b1dbf6
2 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
pkgname=postmarketos-base
|
||||
pkgver=32
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Meta package for minimal postmarketOS base"
|
||||
url="https://postmarketos.org"
|
||||
arch="noarch"
|
||||
|
|
|
@ -43,6 +43,13 @@ ln -sf "$localtime" /etc/localtime
|
|||
rm -rf /etc/zoneinfo
|
||||
[ "$restart" = "yes" ] && service -qq openrc-settingsd restart
|
||||
|
||||
# Fixup old pmOS /etc/fstab installations that had too little options,
|
||||
# had a wrong type for fat32 and fat16, and missed some options for vfat when
|
||||
# kernels did not use default configs. See pmb!2304
|
||||
# This should be safe to remove after some releases, probably v25.06
|
||||
sed -i -e "s% /boot \(fat32\|fat16\) defaults 0 0$% /boot vfat umask=0077,nodev,nosuid,noexec,nosymfollow,codepage=437,iocharset=ascii 0 0%g" /etc/fstab
|
||||
sed -i -e "s% /boot ext2 defaults 0 0$% /boot ext2 nodev,nosuid,noexec 0 0%g" /etc/fstab
|
||||
|
||||
# To turn zram-init into a no-op, set: deviceinfo_zram_swap_pct="0"
|
||||
rc-update -q add zram-init default
|
||||
# We once enabled tmpfs in default, when it needs bootmisc: pma#2473
|
||||
|
|
Loading…
Reference in a new issue