try to fix some fstab issues
This commit is contained in:
parent
25537d6e8a
commit
836dfcbea2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue