mirror of
https://github.com/fspc/gbootroot.git
synced 2025-03-12 07:43:22 -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:
parent
3f7df32e64
commit
6aa8a42f3a
@ -183,7 +183,7 @@ sub halt {
|
|||||||
sub close_no_init {
|
sub close_no_init {
|
||||||
my $me = shift;
|
my $me = shift;
|
||||||
|
|
||||||
$me->{expect_handle}->print("Shutting down\s\s\n");
|
$me->{expect_handle}->print("Shutting down \n");
|
||||||
$me->{expect_handle}->expect(undef, "-re", "Shutting down");
|
$me->{expect_handle}->expect(undef, "-re", "Shutting down");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ my $uml =
|
|||||||
login => "root",
|
login => "root",
|
||||||
password_prompt => "Password: ",
|
password_prompt => "Password: ",
|
||||||
password => "",
|
password => "",
|
||||||
prompt => ".*# ",
|
prompt => "init-.*# ",
|
||||||
halt => "exit"
|
halt => "exit"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -100,7 +100,12 @@ $uml->boot();
|
|||||||
# Establish PATH, some compilations of bash ignore some important paths
|
# 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("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
|
# Make the GID/UID 0 FS
|
||||||
if ( $filesystem =~ /^mkcramfs/ || $filesystem =~ /^genromfs/ ||
|
if ( $filesystem =~ /^mkcramfs/ || $filesystem =~ /^genromfs/ ||
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $Id: Helper.yard,v 1.10 2003/02/20 03:51:59 freesource Exp $
|
# $Id: Helper.yard,v 1.11 2003/02/20 04:24:06 freesource Exp $
|
||||||
# Helper.yard
|
# Helper.yard
|
||||||
#
|
#
|
||||||
#############################################################################
|
#############################################################################
|
||||||
@ -16,15 +16,15 @@ dd
|
|||||||
|
|
||||||
# init - parent of all processes
|
# init - parent of all processes
|
||||||
# Choose an inittab to compliment the traditional init in the page below.
|
# Choose an inittab to compliment the traditional init in the page below.
|
||||||
/sbin/init
|
##/sbin/init
|
||||||
telinit
|
##telinit
|
||||||
/sbin/shutdown
|
##/sbin/shutdown
|
||||||
/sbin/halt
|
##/sbin/halt
|
||||||
/etc/init.d/halt <= Replacements/etc/init.d/halt.example
|
##/etc/init.d/halt <= Replacements/etc/init.d/halt.example
|
||||||
/sbin/reboot
|
##/sbin/reboot
|
||||||
/etc/init.d/reboot <= Replacements/etc/init.d/reboot.example
|
##/etc/init.d/reboot <= Replacements/etc/init.d/reboot.example
|
||||||
/etc/init.d/rc <= Replacements/etc/init.d/rc.example
|
##/etc/init.d/rc <= Replacements/etc/init.d/rc.example
|
||||||
/etc/init.d/rcS <= Replacements/etc/init.d/rcS.helper
|
##/etc/init.d/rcS <= Replacements/etc/init.d/rcS.helper
|
||||||
##/sbin/swapon
|
##/sbin/swapon
|
||||||
|
|
||||||
# Login stuff
|
# Login stuff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user