Update rc.S

- Support for XFS boot
This commit is contained in:
Christoph Hummer
2023-11-22 22:39:03 +01:00
committed by GitHub
parent b9be5cc943
commit c602a641ae

View File

@@ -98,6 +98,9 @@ find_device && /bin/echo "found $DEVICE" || abort "not found"
if /sbin/blkid -s TYPE $DEVICE | /bin/grep -q "btrfs" ; then
NONVFAT=btrfs
/sbin/mount -v -t btrfs -o auto,rw,noatime,nodiratime,discard=sync $DEVICE /boot || abort "cannot mount $DEVICE"
elif /sbin/blkid -s TYPE $DEVICE | /bin/grep -q "xfs" ; then
NONVFAT=xfs
/sbin/mount -v -t xfs -o auto,rw,noatime,nodiratime,discard,wsync $DEVICE /boot || abort "cannot mount $DEVICE"
else
/bin/echo "Checking $DEVICE ..."
/sbin/fsck.fat -a -w $DEVICE 2>/dev/null
@@ -161,7 +164,7 @@ else
fi
# set permissions for non vfat boot on /boot
if [[ $NONVFAT == btrfs ]]; then
if [[ $NONVFAT == btrfs || $NONVFAT == xfs ]]; then
/usr/bin/chown -R root:root /boot
/usr/bin/chmod -R 644 /boot
fi