Browse Source

Rene Rebe:

* mergerd r3178 from branches/2.0-stable:
	  * fixed linuxrc.c MS_MOVE mounts for systems with more strict pointer
	    checking in the kernel (like sparc)



git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3179 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
1798bc9d7f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      target/bootdisk/linuxrc.c

+ 2
- 2
target/bootdisk/linuxrc.c

@ -111,10 +111,10 @@ void doboot()
{ perror("Can't call pivot_root"); exit_linuxrc=0; }
chdir("/");
if ( mount("/old_root/dev", "/dev", NULL, MS_MOVE, NULL) )
if ( mount("/old_root/dev", "/dev", "", MS_MOVE, NULL) )
perror("Can't remount /old_root/dev as /dev");
if ( mount("/old_root/proc", "/proc", NULL, MS_MOVE, NULL) )
if ( mount("/old_root/proc", "/proc", "", MS_MOVE, NULL) )
perror("Can't remount /old_root/proc as /proc");
} else {
if ( rmdir("/mnt_root/old_root") )

Loading…
Cancel
Save