Fred; Looks like this is the critical part of the code you posted:
Code: Select all
mount -o bind /mnt/$DEV/$LPTH/changes /memory/changes && touch /memory/changes/._test1 2>/dev/null
A USB`s partition changes. But if boot part. is always /live/image, then /live/image/live-rw
This path can be a variable so other /partition/dir. can be mounted at boot also.
# Or is /live/image always the partition that /live is on, not the boot partition.?
I think a good setup for the installer is that the O.S. /live and it`s /live-rw dir. are always on the same partition.
# The live-rw dir. is made and then placed at the top of the union stack. So order is important.
# I think I need to see where Porteus initrd does union command and insert /live/image/live-rw
# So does this seem correct.? OR are /cow & /image bind mounts.? Want to bind to original source points.
Code: Select all
mount -o bind /live/cow /live/image/live-rw 2>/dev/null
Code: Select all
mount -o bind /live/image/live-rw /live/cow 2>/dev/null