mirror of
https://github.com/unraid/webgui.git
synced 2026-01-09 02:59:52 -06:00
Update rc.S
- Support for XFS boot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user