Merge pull request #390 from Googulator/devtmpfs

Use devtmpfs, and improve finalize_fhs.sh
This commit is contained in:
fosslinux 2024-01-08 10:55:57 +00:00 committed by GitHub
commit 9ec45654cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 9 deletions

View file

@ -4,7 +4,11 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -ex
set -e
# mount might fail if /etc doesn't exist because of fstab and mtab
mkdir -p /dev /etc
mount -t devtmpfs none /dev &> /junk || true # no /dev/null yet
rm /junk &> /dev/null || true
# Create partition if it doesn't exist
if [ $(($(stat -c "%Lr" "/dev/${DISK}") % 8)) -eq 0 ]; then