The non-root saga continues.

This commit is contained in:
freesource
2001-10-18 05:17:50 +00:00
parent cf9f91863b
commit fed9b6c6cd
2 changed files with 19 additions and 12 deletions
+9 -8
View File
@@ -129,7 +129,7 @@ my $home = "$ENV{HOME}/.gbootroot";
my $uml_xterm = "xterm -e";
$main::editor = "emacs --font 6x13";
$main::makefs = "mke2fs -F -m0 -i8192"; # Root Disk
my $sudo = "sudo";
$main::sudo = "sudo";
# CHANGES
#
@@ -538,7 +538,7 @@ else {
# auto defaults,noauto,user,loop 0 0
#
# For the boot/root disks the administrator will have to give the user
# special su privileges (mknod) to make special devices. The $sudo
# special su privileges (mknod) to make special devices. The $main::sudo
# variable can be set to sudo or super, fakeroot won't work.
# These include: /dev/{console,null,ram0,ram1,tty0}
# These two lines need to be added to create the boot_fs and the boot/root
@@ -566,6 +566,7 @@ else {
"mkdir $tmp1/gboot_non_root_mnt_" . $user,
"gBootRoot: ERROR: Could not make mount directory") != 2;
}
$mnt = "$tmp1/gboot_non_root_mnt" . $user;
}
@@ -3114,12 +3115,12 @@ sub initrd {
}
else {
# This could be replaced by a devfs.
sys("$sudo mknod c 5 1 $tmp/initrd_mnt/dev/console");
sys("$sudo mknod c 1 3 $tmp/initrd_mnt/dev/null");
sys("$sudo mknod b 1 0 $tmp/initrd_mnt/dev/ram0");
sys("$sudo mknod b 1 1 $tmp/initrd_mnt/dev/ram1");
sys("$sudo mknod c 4 0 $tmp/initrd_mnt/dev/tty0");
sys("$sudo mknod b 2 0 $tmp/initrd_mnt/dev/fd0");
sys("$main::sudo mknod c 5 1 $tmp/initrd_mnt/dev/console");
sys("$main::sudo mknod c 1 3 $tmp/initrd_mnt/dev/null");
sys("$main::sudo mknod b 1 0 $tmp/initrd_mnt/dev/ram0");
sys("$main::sudo mknod b 1 1 $tmp/initrd_mnt/dev/ram1");
sys("$main::sudo mknod c 4 0 $tmp/initrd_mnt/dev/tty0");
sys("$main::sudo mknod b 2 0 $tmp/initrd_mnt/dev/fd0");
}
pb($I,7);