summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2007-06-27 11:02:38 +1000
committerJeremy Kerr <jk@ozlabs.org>2007-06-27 11:02:38 +1000
commit7d7c328016aca3e14aee6268a2e7881d3440e226 (patch)
tree16ace6763c938c66980d16ce248e7608fdb45b89 /utils
parentc24a319cec4c563845ddfe269ed7f2d9b962d922 (diff)
downloadtalos-petitboot-7d7c328016aca3e14aee6268a2e7881d3440e226.tar.gz
talos-petitboot-7d7c328016aca3e14aee6268a2e7881d3440e226.zip
Resolve device paths in kernel and initrd locations.
Instead of mounting in random locations, create a fixed mapping between device and mountpoint. This allows the parsers to refer to files outside the current partition. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/ps3-kboot-0.1-petitboot.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/ps3-kboot-0.1-petitboot.patch b/utils/ps3-kboot-0.1-petitboot.patch
index 651f548..a33fa24 100644
--- a/utils/ps3-kboot-0.1-petitboot.patch
+++ b/utils/ps3-kboot-0.1-petitboot.patch
@@ -50,7 +50,7 @@ More info at http://ozlabs.org/~jk/projects/petitboot/
+ find root/ -name '*.a' -o -name '*.la' -exec rm {} \;
mkdir -p root/etc root/tmp root/proc root/dev root/sys
mkdir -p root/mnt/tmp root/mnt/root root/bin root/sbin
-+ mkdir -p root/var/tmp
++ mkdir -p root/var/tmp/mnt
+ mkdir -p root/etc/udev/rules.d
[ -e root/dev/console ] || mknod root/dev/console c 5 1
[ -e root/dev/null ] || mknod root/dev/null c 1 3
@@ -283,7 +283,7 @@ diff -urN ps3-kboot.orig/ps3-kboot-0.1/scripts/petitboot-init ps3-kboot/ps3-kboo
+ /sbin/petitboot -u
+
+ # clean up after petitboot
-+ for dir in /var/tmp/mnt-*;
++ for dir in /var/tmp/mnt/*;
+ do
+ umount "$dir"
+ rmdir "$dir"
OpenPOWER on IntegriCloud