another highly perversive scheme:

mounts ALTLinux etc under /mnt, then
mounts /mnt/xxx.clp under /root, then
mounts --move /mnt under /root/opt, then
mounts --move / under /root
--
someone, stop me
This commit is contained in:
Sergey Bolshakov 2004-11-30 16:11:41 +00:00
parent 0be6937de0
commit 25f4ab2cc3
2 changed files with 5 additions and 2 deletions

View File

@ -30,8 +30,8 @@
#define VERSION_FILE "/.VERSION"
#define RAMDISK_LOCATION "/ALTLinux/base/"
#define IMAGE_LOCATION "/mnt"
#define STAGE2_LOCATION "/mnt"
#define IMAGE_LOCATION "/opt"
#define STAGE2_LOCATION "/root"
#define LIVE_DEVICE "/dev/cloop"
#define STAGE2FS "romfs"
#define LIVEFS "ext2"

3
init.c
View File

@ -590,6 +590,9 @@ int main(int argc, char **argv)
/* Okay, I think we should be safe... */
if ( mount(IMAGE_LOCATION, "." IMAGE_LOCATION, NULL, MS_MOVE, NULL) )
fatal_error("overmounting image location");
umount("/sys");
umount("/proc");