Add support for the nofail filesystem option on Linux https://github.com/webmin/webmin/issues/1012

This commit is contained in:
Jamie Cameron
2020-12-25 15:17:42 -08:00
parent 2249187e57
commit 8758a6e3b2
3 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<header>Continue boot even if mount fails?</header>
By default, any filesystem that fails to mount at boot time will interrupt
the boot process. Changing this option to <b>Yes</b> will allow bootup to
continue, as long as it's no the root filesystem. <p>
<footer>

View File

@@ -368,6 +368,7 @@ linux_noenforce=Yes, but don't enforce
linux_df=Include reserved blocks in filesystem size?
linux_noatime=Avoid updating last access times?
linux_netdev=Wait until network interfaces are up?
linux_nofail=Continue boot even if mount fails?
linux_ecname=Missing or invalid client netbios name
linux_emname=Missing or invalid server hostname or IP address
linux_bind=Original Directory

View File

@@ -1205,6 +1205,9 @@ if ($type ne "swap" && $type ne "auto" &&
print &ui_table_row(&hlink($text{'linux_netdev'}, "linux_netdev"),
&ui_yesno_radio("lnx_netdev", defined($options{"_netdev"})));
print &ui_table_row(&hlink($text{'linux_nofail'}, "linux_nofail"),
&ui_yesno_radio("lnx_nofail", defined($options{"nofail"})));
}
if ($type =~ /^ext\d+$/) {
@@ -1810,6 +1813,9 @@ if ($_[0] ne "swap" && $_[0] ne "auto" &&
delete($options{"_netdev"});
$options{"_netdev"} = "" if ($in{'lnx_netdev'});
delete($options{"nofail"});
$options{"nofail"} = "" if ($in{'lnx_nofail'});
}
if (($_[0] eq "nfs") || ($_[0] eq "nfs4")) {