mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 00:53:23 -05:00
This fixes the hard-wired device bug 112215
This commit is contained in:
parent
824b2bdea3
commit
531735f884
11
gBootRoot
11
gBootRoot
@ -1098,9 +1098,8 @@ return if errmk(system "mkdir $tmp/initrd_mnt >> $tmp/verbose 2>&1; mount -o loo
|
|||||||
return if errmk(system "mkdir $tmp/initrd_mnt/{bin,dev,etc,lib,mnt,proc,sbin,usr} >> $tmp/verbose 2>&1; mkdir $tmp/initrd_mnt/usr/lib >> $tmp/verbose 2>&1") == 2;
|
return if errmk(system "mkdir $tmp/initrd_mnt/{bin,dev,etc,lib,mnt,proc,sbin,usr} >> $tmp/verbose 2>&1; mkdir $tmp/initrd_mnt/usr/lib >> $tmp/verbose 2>&1") == 2;
|
||||||
pb($I,6);
|
pb($I,6);
|
||||||
|
|
||||||
return if errcp(system "cp -a /dev/{console,fd0,null,ram0,ram1,tty0} $tmp/initrd_mnt/dev >> $tmp/verbose 2>&1") == 2;
|
return if errcp(system "cp -a /dev/{console,null,ram0,ram1,tty0} $tmp/initrd_mnt/dev >> $tmp/verbose 2>&1") == 2;
|
||||||
# future implementation
|
return if errcp(system "cp -a $device $tmp/initrd_mnt/dev") == 2;
|
||||||
#errcp(system "cp -a $device $tmp/initrd_mnt/dev");
|
|
||||||
pb($I,7);
|
pb($I,7);
|
||||||
|
|
||||||
#V#print ".. the bins\n";
|
#V#print ".. the bins\n";
|
||||||
@ -1270,14 +1269,14 @@ mount -t proc none /proc
|
|||||||
echo -n 'Please insert the root floppy, and press [Enter]: '
|
echo -n 'Please insert the root floppy, and press [Enter]: '
|
||||||
read ENTER
|
read ENTER
|
||||||
|
|
||||||
echo Mounting floppy drive readonly ...
|
echo Mounting $device readonly ...
|
||||||
mount -o ro -t ext2 /dev/fd0 /mnt
|
mount -o ro -t ext2 $device /mnt
|
||||||
|
|
||||||
echo -n Copying new root to ramdisk .. please wait ...
|
echo -n Copying new root to ramdisk .. please wait ...
|
||||||
$compress -cd /mnt/$broot_image > /dev/ram1
|
$compress -cd /mnt/$broot_image > /dev/ram1
|
||||||
echo done.
|
echo done.
|
||||||
|
|
||||||
echo -n Unmounting floppy ...
|
echo -n Unmounting $device ...
|
||||||
umount /mnt
|
umount /mnt
|
||||||
echo done.
|
echo done.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user