Posts: 279
afab4
Joined: 17 Oct 2009
#1
How to make a live USB with persistence from a antixsnapshot remaster:

You need to install live-init for your version before remastering.
Create the Live USB using the new_usb.sh script.

After remastering, and creating your new USB, booting live usb without persistence should work ok. You will have to create a menu.lst first though before booting the USB and place it inside the /boot/grub/ directory on the USB. Contents as follows:

Code: Select all

default 0
timeout 10
color cyan/blue white/blue
foreground ffffff
background 003f7d
gfxmenu /boot/grub/message

## ISO boot
title antiX (LiveUSB)
kernel /antiX/vmlinuz quiet lean noxorg vga=791 
initrd /antiX/initrd.gz

## ISO boot
title antiX (Home Persistence)
kernel /antiX/vmlinuz quiet lean noxorg vga=791 persist=home
initrd /antiX/initrd.gz

## ISO boot
title antiX (Root Persistence)
kernel /antiX/vmlinuz quiet lean noxorg vga=791 persist
initrd /antiX/initrd.gz

title antiX-memtest (test system memory)
kernel /boot/memtest
Now, make the persist files rootfs and homefs. Make your homefs large enough to hold the entire contents of your home directory or the process will fail.
Reboot using persist option and also init 3 (add 3 to boot line) otherwise you can't login as the
home/username folder hasn't yet been created. Login as root with your root password. Open Midnight Commander(mc), copying the correct user folder from /live/aufs/home/ to /home/ and then make the correct ownership changes from root, root to username, users.

Then you should be able to login and changes will stick on subsequent reboot with persist.

This information is from a PM that anti sent me.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
This may seem a clumsy way to get live persistence running from a snapshot remaster of an installed system, but it does work even though we hadn't planned on using persistence for snapshot isos.
At some point in the future, we'll get the process automated. The steps would be something like this.

1. antixsnapshot app (gui/cli) asks if user wants to include persistence to the iso.
2. If yes, install live-init for the correct version ie full/base/core.
3. Proceed with antixsnapshot.
4. On first boot with the new snapshot iso (or in its frugal mode), boot normally without persist cheat.
5. Set up persistence for root/home.
6. Reboot
7. If persist option is chosen, run a script that copies the user folder in /live/aufs/home to the new /home/ directory and sets the correct permissions.