[PATCHv2,10/12] extrahd.cgi: Requires "auto" as hidden FS type to mount a new device

Message ID 20230801154839.2373-10-stefan.schantl@ipfire.org
State Staged
Commit 65dc35dcf4108eca6f8ed296ad2edf5592fe7777
Headers
Series [PATCHv2,01/12] extrahd.cgi: Add various perl functions deal with block devices |

Commit Message

Stefan Schantl Aug. 1, 2023, 3:48 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 html/cgi-bin/extrahd.cgi | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Bernhard Bitsch Aug. 2, 2023, 12:10 p.m. UTC | #1
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>


Am 01.08.2023 um 17:48 schrieb Stefan Schantl:
> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
> ---
>   html/cgi-bin/extrahd.cgi | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/html/cgi-bin/extrahd.cgi b/html/cgi-bin/extrahd.cgi
> index c621bd72f..122f1d12d 100644
> --- a/html/cgi-bin/extrahd.cgi
> +++ b/html/cgi-bin/extrahd.cgi
> @@ -305,6 +305,7 @@ END
>   					} else {
>   						unless($disabled) {
>   							print "<input type='hidden' name='ACTION' value='$Lang::tr{'add'}'>\n";
> +							print "<input type='hidden' name='FS' value='auto'>\n";
>   							print "<img src='/images/updbooster/updxl-led-gray.gif' alt='$Lang::tr{'extrahd not configured'}' title='$Lang::tr{'extrahd not configured'}'>&nbsp;\n";
>   							print "<input type='image' alt='$Lang::tr{'add'}' title='$Lang::tr{'add'}' src='/images/add.gif'>\n";
>   						}
  

Patch

diff --git a/html/cgi-bin/extrahd.cgi b/html/cgi-bin/extrahd.cgi
index c621bd72f..122f1d12d 100644
--- a/html/cgi-bin/extrahd.cgi
+++ b/html/cgi-bin/extrahd.cgi
@@ -305,6 +305,7 @@  END
 					} else {
 						unless($disabled) {
 							print "<input type='hidden' name='ACTION' value='$Lang::tr{'add'}'>\n";
+							print "<input type='hidden' name='FS' value='auto'>\n";
 							print "<img src='/images/updbooster/updxl-led-gray.gif' alt='$Lang::tr{'extrahd not configured'}' title='$Lang::tr{'extrahd not configured'}'>&nbsp;\n";
 							print "<input type='image' alt='$Lang::tr{'add'}' title='$Lang::tr{'add'}' src='/images/add.gif'>\n";
 						}