[arch-releng] [PATCH] Allow using a USB device as read-write branch instead of tmpfs
Dieter Plaetinck
dieter at plaetinck.be
Mon Aug 24 05:41:41 EDT 2009
On Mon, 24 Aug 2009 01:02:15 +0200
Thomas Bächler <thomas at archlinux.org> wrote:
> ---
> 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"
If this is the patch that enables you to make all your changes persistent on the usb stick, then I love this.
Maybe we could go further: do we even need unionning here at all?
Dieter
More information about the arch-releng
mailing list