main/postmarketos-base: keep /etc/fstab (MR 1398)

Only add a comment, do not try to mount the root or boot partitions
anymore. The initramfs is doing this already.

Related: https://postmarketos.org/fstab
This commit is contained in:
Oliver Smith 2020-07-06 16:34:28 +02:00 committed by Bart Ribbers
parent 863ec713ba
commit 784782f543
No known key found for this signature in database
GPG Key ID: 699D16185DAFAE61
2 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,6 @@
pkgname=postmarketos-base
pkgver=3
pkgrel=35
pkgrel=36
pkgdesc="Meta package for minimal postmarketOS base"
url="https://postmarketos.org"
arch="noarch"

View File

@ -23,12 +23,14 @@ mkdir -p /run/openrc
touch /run/openrc/shutdowntime
# Install /etc/fstab
echo "- Modifying: /etc/fstab"
{
echo '# <file system> <mount point> <type> <options> <dump> <pass>'
echo 'LABEL="pmOS_root" / ext4 relatime,data=ordered 0 1'
echo 'LABEL="pmOS_boot" /boot auto defaults 0 2'
} >/etc/fstab
if ! grep -q "postmarketos\.org/fstab" /etc/fstab; then
echo "- Modifying: /etc/fstab"
{
echo
echo "# This file is *not* used to mount / or /boot."
echo "# More information: https://postmarketos.org/fstab"
} >> /etc/fstab
fi
# Set /etc/issue
echo "- Modifying: /etc/issue"