[arch-releng] [PATCH] Allow using a USB device as read-write branch instead of tmpfs
Thomas Bächler
thomas at archlinux.org
Sun Aug 23 19:02:15 EDT 2009
---
archiso/hooks/archiso | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso
index ab55be6..5cbfb44 100644
--- a/archiso/hooks/archiso
+++ b/archiso/hooks/archiso
@@ -84,7 +84,13 @@ run_hook ()
/bin/modprobe -q aufs >/dev/null 2>&1
msg ":: Mounting root (aufs) filesystem"
- /bin/mount -t aufs -o dirs=/tmpfs=rw none /real_root
+ if [ "${livesystem}" = "rw" ]; then
+ /bin/mount -o remount,rw /bootmnt
+ mkdir -p /bootmnt/livesystem
+ /bin/mount -t aufs -o dirs=/bootmnt/livesystem=rw none /real_root
+ else
+ /bin/mount -t aufs -o dirs=/tmpfs=rw none /real_root
+ fi
export LOOP_NUM="0"
msg ":: Mounting images"
--
1.6.4.1
More information about the arch-releng
mailing list