From 160b32a791a7170e4b27892b41b0b22791708f6e Mon Sep 17 00:00:00 2001 From: freesource Date: Mon, 24 Feb 2003 06:41:06 +0000 Subject: [PATCH] Better add .options even when --home . --- BootRoot/BootRoot.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/BootRoot/BootRoot.pm b/BootRoot/BootRoot.pm index e8a07ca..7f8fc8e 100644 --- a/BootRoot/BootRoot.pm +++ b/BootRoot/BootRoot.pm @@ -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} ) {