mirror of
https://github.com/fspc/gbootroot.git
synced 2026-09-09 13:21:40 -04:00
Had to add more changes to expect_uml and UML so that there will be an
established PATH, and so that uml_mconsole's system command won't be issued until the last line is actually come to via a new method. Nothing can ever be too simple.
This commit is contained in:
+7
-2
@@ -91,7 +91,7 @@ my $uml =
|
||||
login => "root",
|
||||
password_prompt => "Password: ",
|
||||
password => "",
|
||||
prompt => ".*# ",
|
||||
prompt => "init-.*# ",
|
||||
halt => "exit"
|
||||
);
|
||||
|
||||
@@ -100,7 +100,12 @@ $uml->boot();
|
||||
# Establish PATH, some compilations of bash ignore some important paths
|
||||
$uml->command("PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:.");
|
||||
|
||||
$uml->command("mount -t proc proc /proc");
|
||||
# Sometimes this is required
|
||||
|
||||
$uml->command("mount -n /proc");
|
||||
$uml->command("mount -o remount /");
|
||||
$uml->command("mount -a");
|
||||
$uml->command("/bin/hostname bootroot");
|
||||
|
||||
# Make the GID/UID 0 FS
|
||||
if ( $filesystem =~ /^mkcramfs/ || $filesystem =~ /^genromfs/ ||
|
||||
|
||||
Reference in New Issue
Block a user