1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-03-11 23:33:23 -04:00

Better add .options even when --home .

This commit is contained in:
freesource 2003-02-24 06:41:06 +00:00
parent 71b5ad30f4
commit 160b32a791

View File

@ -379,6 +379,21 @@ if ( !%option || $option{gui_mode} ) {
# /tmp
home_builder($tmp1);
if ( $home_uml_kernel =~ /user-mode-linux/ &&
$option{home} ) {
if (!-e "$home_uml_kernel/.options") {
open(OPTIONS,">$home_uml_kernel/.options")
or die "Couldn't write $home_uml_kernel/.options at $?\n";
# I removed mem=16M to make sure the optimal mem size was being
# chosen for the MTD Emulator
# in case the user didn't know any better.
print OPTIONS "umid=bootroot root=/dev/ubd0\n";
close(OPTIONS);
}
}
if ( !( $option{help} || $option{h} ) &&
$home_uml_kernel !~ /user-mode-linux/ &&
!$option{home} ) {