summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/boot
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2008-08-22 20:17:56 +0000
committerMike Westerhof <mwester@dls.net>2008-08-22 20:17:56 +0000
commit506da3980bbbc87b833772fa01dbd762097b26a0 (patch)
treec624f1b001d500679634938798cea73a06506cfd /packages/slugos-init/files/boot
parent75f1ddaec9822b9277f0ebe5be6992172a2e0945 (diff)
SlugOS 5.0 - make booting to a ramdisk (via turnup ram) work again;
need to accomodate an inconsistency between find and busybox find.
Diffstat (limited to 'packages/slugos-init/files/boot')
-rw-r--r--packages/slugos-init/files/boot/ram5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/slugos-init/files/boot/ram b/packages/slugos-init/files/boot/ram
index a7c78b39ac..2583edf852 100644
--- a/packages/slugos-init/files/boot/ram
+++ b/packages/slugos-init/files/boot/ram
@@ -28,9 +28,12 @@ then
# filter out boot (with zimage), linuxrc and anything
# below /var, keep dev or the boot will fail (note that
# nothing is mounted this early in the bootstrap).
- find . -mount -print |
+ find . -xdev -print |
sed '\@^./boot/@d;\@^./boot$@d;\@^./linuxrc@d;\@^./var/@d' |
cpio -p -d -m -u /mnt
+ # busybox find with -xdev will not print the name of the
+ # mountpoint, so create the empty dir manually if required.
+ test -d /mnt/mnt || mkdir /mnt/mnt
# checkmount checks for sh, init and no .recovery plus
# either mnt or initrd, mnt must exist!
if checkmount /mnt