Browse Source

fake:


			
			
				rocklinux
			
			
		
fake 20 years ago
parent
commit
cd871fb08b
2 changed files with 4 additions and 1 deletions
  1. +1
    -1
      target/bootdisk/build_stage1.sh
  2. +3
    -0
      target/bootdisk/linuxrc.c

+ 1
- 1
target/bootdisk/build_stage1.sh

@ -1,7 +1,7 @@
echo_header "Creating initrd data:"
rm -rf $disksdir/initrd
mkdir -p $disksdir/initrd/{dev,proc,tmp,scsi,net,bin}
mkdir -p $disksdir/initrd/{dev,proc,sys,tmp,scsi,net,bin}
cd $disksdir/initrd; ln -s bin sbin; ln -s . usr
#
echo_status "Create linuxrc binary."

+ 3
- 0
target/bootdisk/linuxrc.c

@ -611,6 +611,9 @@ int main()
if ( mount("none", "/dev", "devfs", 0, NULL) && errno != EBUSY )
perror("Can't mount /dev");
if ( mount("none", "/sys", "sysfs", 0, NULL) && errno != EBUSY )
perror("Can't mount /sys (not fatal)");
if ( mount("none", "/proc", "proc", 0, NULL) && errno != EBUSY )
perror("Can't mount /proc");

Loading…
Cancel
Save