Fri Nov 15, 2013 2:45 pm
Sat Nov 16, 2013 3:43 am
3 days from now, will I remember the exact LABEL string I saved as?You just add "persistence-label=LABEL" to the append line
Sat Nov 16, 2013 3:51 am
Sat Nov 16, 2013 10:38 am
Sat Nov 16, 2013 3:30 pm
One way you might get separate dedicated persistence on a multiboot would be with multiple partitions, each with a different disk label. You just add "persistence-label=LABEL" to the append line
persistence-label=LABEL
live-boot will use the name "LABEL" instead of "persistence" when
searching for persistent storage. LABEL can be any valid filename,
partition label, or GPT name.
persistence-path=PATH
live-boot will look for persistency files in the root directory of
a partition, with this parameter, the path can be configured so
that you can have multiple directories on the same partition to
store persistency files.
menu label refracta-sid
#menu default
kernel /refracta-sid/vmlinuz
append boot=live initrd=/refracta-sid/initrd.custom.img live-media-path=/refracta-sid/ basemountmode=rw,noatime union=aufs quiet persistence persistence-path=/refracta-sid/ persistence-encryption=none,luks
Sat Nov 16, 2013 6:09 pm
Sun Nov 17, 2013 2:25 am
Since you can't see the "persistence-label=LABEL" without hitting the TAB key
Would you like to load a savefile this session?
0) none
1) lengthy_highly_descriptive_name_of_savefile_and_perhaps_autoappended_datetime
2) openoffice_and_other_shite_i_typically_dont_care_to_load_but_sometimes_need
3) NSFW_dont_boot_to_this_if_wifey_is_around
4) rollback_waypoint___prior_to_upgrading_gtk_etc_libs
...but I do see merit in supporting multiple savefiles.Multiple partitions on a small drive waste space. Makes adding a new system without trashing an existing one a problem.
Sun Nov 17, 2013 2:09 pm
Sun Nov 17, 2013 3:16 pm
select_device_gui () {
usbdevlist=$(/usr/sbin/hwinfo --usb --short|grep "/dev/sd"|awk '{print $1}')
usbdevfulllist=$(/usr/sbin/hwinfo --usb --short|grep "/dev/sd"|awk '{print $0}')
if [[ -z "$usbdevfulllist" ]] ; then
no_device_message="\n ### WARNING: No usb device was detected. Plug it in and Rescan. ###"
run_task
fi
echo -e "\n\tLIST OF USB DEVICES\n\n$usbdevfulllist\n"
device=$($DIALOG --width=400 --height=200 --title="$TITLE" --list --separator="" --column="" --text=$"Detected USB devices:\n\n$usbdevfulllist\n\nPlease select the correct one to use" $usbdevlist \
--${BUTTON0}="OK"${BUTTON0NUM} --${BUTTON1}="Exit"${BUTTON1NUM})
if [[ $? = 1 ]] ; then
exit 0
fi
if [[ -z $device ]] ; then
no_device_message="\n You did not select a usb device. Rescan to select one."
warning_message="\n You did not select a usb device. Rescan to select one."
warning_dialog
elif ! [[ -b $device ]] ; then
echo "Device $device is not a block device!"
no_device_message="\n You did not select a usb device; rescan to select one."
error_message="Device $device is not a block device."
exit_dialog
else
echo "$device" > "$tempfile"
fi
}
warning_dialog () {
$DIALOG --$WARNING --title="$TITLE" --text="$warning_message" \
--${BUTTON0}="OK"${BUTTON0NUM}
}
Sun Nov 17, 2013 3:28 pm