diff options
author | Sebastian Schmelzer | 2008-08-12 13:17:10 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2008-08-12 13:17:10 +0200 |
commit | ce9a39524ea0eec7e2e2d144dc5dc1931c7bab27 (patch) | |
tree | 0056e1f5304a0287c64026d99f4e5cd0932d6d2b /tools/busybox-patches/unionfs-run-init-1.11.1.diff | |
parent | Dummy for Xorg xrandr stage3 attribute (see #204) (diff) | |
download | core-ce9a39524ea0eec7e2e2d144dc5dc1931c7bab27.tar.gz core-ce9a39524ea0eec7e2e2d144dc5dc1931c7bab27.tar.xz core-ce9a39524ea0eec7e2e2d144dc5dc1931c7bab27.zip |
* update to busybox 1.11.1
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2031 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'tools/busybox-patches/unionfs-run-init-1.11.1.diff')
-rw-r--r-- | tools/busybox-patches/unionfs-run-init-1.11.1.diff | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/busybox-patches/unionfs-run-init-1.11.1.diff b/tools/busybox-patches/unionfs-run-init-1.11.1.diff new file mode 100644 index 00000000..c678c751 --- /dev/null +++ b/tools/busybox-patches/unionfs-run-init-1.11.1.diff @@ -0,0 +1,14 @@ +diff -wur busybox-1.11.0/util-linux/switch_root.c busybox-1.11.0-patched/util-linux/switch_root.c +--- busybox-1.11.0/util-linux/switch_root.c 2008-06-25 14:51:38.000000000 +0200 ++++ busybox-1.11.0-patched/util-linux/switch_root.c 2008-07-10 17:54:56.000000000 +0200 +@@ -105,6 +105,10 @@ + // Overmount / with newdir and chroot into it. The chdir is needed to + // recalculate "." and ".." links. + ++ if ( !lstat("/rorootfs", &st1 ) ) ++ if ( mount("/rorootfs", "/", NULL, MS_MOVE, NULL) ) ++ bb_error_msg_and_die("moving rorootfs"); ++ + if (mount(".", "/", NULL, MS_MOVE, NULL)) + bb_error_msg_and_die("error moving root"); + xchroot("."); |