diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2000-12-15 22:04:57 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2000-12-15 22:04:57 +0000 |
commit | b04e2df8fe397300686d48cf845b17f739f2f730 (patch) | |
tree | 6b758bef43889a8ad57b7636b837822e49e3e7f3 /sys-apps/bootdisk | |
parent | Files from the current bootcd/disk (diff) | |
download | gentoo-2-b04e2df8fe397300686d48cf845b17f739f2f730.tar.gz gentoo-2-b04e2df8fe397300686d48cf845b17f739f2f730.tar.bz2 gentoo-2-b04e2df8fe397300686d48cf845b17f739f2f730.zip |
new important mount fix
Diffstat (limited to 'sys-apps/bootdisk')
-rw-r--r-- | sys-apps/bootdisk/files/linuxrc.c | 4 | ||||
-rw-r--r-- | sys-apps/bootdisk/files/linuxrc2.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys-apps/bootdisk/files/linuxrc.c b/sys-apps/bootdisk/files/linuxrc.c index 1f6affcde748..1964f5a4ddb2 100644 --- a/sys-apps/bootdisk/files/linuxrc.c +++ b/sys-apps/bootdisk/files/linuxrc.c @@ -172,7 +172,9 @@ int main(void) { } printf("%sSuccess!%s\n",color,off); - mount("/dev/loop0","/","ext2",0,MS_MGC_VAL|MS_RDONLY,0); +// The kernel will mount the new root filesystem. We just set real-root-dev +// unmount proc and exit -- drobbins +// mount("/dev/loop0","/","ext2",0,MS_MGC_VAL|MS_RDONLY,0); //set real root device to /dev/loop0 (major 7, minor 0) writefile("/proc/sys/kernel/real-root-dev","0x700"); diff --git a/sys-apps/bootdisk/files/linuxrc2.c b/sys-apps/bootdisk/files/linuxrc2.c index 7cd0b5b0e6b2..8f315c447215 100644 --- a/sys-apps/bootdisk/files/linuxrc2.c +++ b/sys-apps/bootdisk/files/linuxrc2.c @@ -167,7 +167,9 @@ int main(void) { } printf("%sSuccess!%s\n",color,off); - mount("/dev/loop0","/mnt/cdrom","ext2",0,MS_MGC_VAL|MS_RDONLY,0); +// drobbins is certain that this line should not be here +// the kernel should mount the new root filesystem +// mount("/dev/loop0","/mnt/cdrom","ext2",0,MS_MGC_VAL|MS_RDONLY,0); //set real root device to /dev/loop0 (major 7, minor 0) // writefile("/proc/sys/kernel/real-root-dev","0x700"); |