try to fix some fstab issues

This commit is contained in:
SArpnt 2024-03-02 19:02:36 -05:00
parent 25537d6e8a
commit 836dfcbea2
Signed by: SArpnt
SSH Key Fingerprint: SHA256:iDMeic8KkqqEsN4wODlgsk1d/oW1ojZ/cu/MEWyfLBw
1 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ begin
for mountline in (mount | grep "on /mnt")
set -l words (string split " " $mountline)
set -l device (getdevice $words[1])
set -l mountpoint (echo $words[3] | sed "s/^\/mnt//")
set -l mountpoint (echo $words[3] | sed "s/^\/mnt\/*/\//")
set -l filesystem $words[5]
set -l options defaults
set -l check 0
@ -65,9 +65,9 @@ begin
else
switch $mountpoint
case "/"
set -l check 1
set check 1
case "/*"
set -l check 2
set check 2
end
end
echo "$device $mountpoint $filesystem $(string join , $options) 0 $check" >> /mnt/etc/fstab