Mon Dec 08, 2014 9:36 pm
Tue Dec 09, 2014 12:19 am
#PERSISTENCE_TYPE=$($DIALOG --list --radiolist --column ' ' --column '' --width 260 --height 190 FALSE "Persistent home" FALSE "Full persistence" FALSE "Let me edit persistence.conf")
PERSISTENCE_TYPE=$(yad --list --radiolist --column ' ' --column '' --width 260 --height 190 FALSE "Persistent home" FALSE "Full persistence" FALSE "Let me edit persistence.conf")
Tue Dec 09, 2014 2:09 am
Fri Dec 12, 2014 1:25 am
Throughout the script were commands that can no longer be run by unprivileged user
/sbin/fdisk -l
/sbin/blkid
syslinux -d syslinux /dev/sdb1
Mon Feb 16, 2015 6:42 pm
* Root must run refracta2usb. Solves blkid and 'syslinux -d' issues.
* Solves multiple password entries and su vs. sudo issues.
*
* Reorganized refracta2usb to combine functions for creating live-usb.
* Multiboot is assumed. Use iso contents, intact iso, running live-cd
* or live-usb as a source.
*
* Reorganized menus: Main menu (to create) and Tools (to manage).
* Added -t,--tools command line option to start with Tools menu.
*
* Syslinux folder gets created from host instead of copied from iso or
* from packgage. This solves mismatched versions of syslinux modules
* and syslinux mbr.
*
* install_syslinux_bootloader script is now a function in main script.
* mkpersist script is now functions.mkpersist run from main script.
* mkloopback script converted to functions.mkloopback
* mount/unmount loopfile and delete loop device converted to functions.
*
* Eliminated mkusbcrypt and old refracta hooks.
* Eliminated Update task. Just delete the folder and add a new one.
* Added test for boot flag on first partition.
* All tasks return to menu instead of exiting.
* Trapped cleanup so it runs on any exit.
*
* Boot menu entries for persistent partition or loopback file use
* "$target_name" (the directory that contains the live system) instead
* of "Refracta".
Wed Apr 22, 2015 10:16 am
Only major problem seems to be encryption. I've made custom initrds with both the alpha9 and alpha21 versions of patch-initrd, and it does not ask for the password at boot. Instead of mounting the loopfile, it mounts the partition at /lib/live/mount/persistence/sdXn. The loopfile does contain persistence.conf, so I know it's getting mounted when it's created
user@exefce:~$ cat /proc/cmdline
boot=live showmounts noprompt findiso=/exefce/snapshot-20150418_2328.iso mountmode=rw,noatime components=locales,sudo locales=en_GB.UTF-8 keyboard-layouts=gb vga=791 swap persistence persistence-encryption=none,luks persistence-path=exefce/luks/ debug=1
CRYPTSETUP=y update-initramfs -u
Wed Apr 22, 2015 9:21 pm
Thu Apr 23, 2015 12:13 am
Thu Apr 23, 2015 11:33 am
user@jessie-sysv:~$ cat /proc/cmdline
BOOT_IMAGE=/jessie-dev-test/live/vmlinuz initrd=/jessie-dev-test/live/initrd.custom1.gz boot=live ip=frommedia union=aufs basemountmode=rw,noatime,umask=000 live-media-path=/jessie-dev-test/live persistence persistence-media=removable-usb persistence-path=/loopfiles/ persistence-label=testluks persistence-encryption=none,luks
Thu Apr 23, 2015 1:15 pm