Thu Nov 07, 2013 3:55 pm
dzz wrote:fsr wrote:
Other thing I need to do is rewrite refracta2usb. I'm planning on removing the encryption hack, since it won't be needed for jessie/sid, and after coaching someone through using it over the phone, I want to rearrange some stuff. For one thing, right now, every step requires identifying the usb drive you want to use. That should only have to happen once. I also want to add an option to add and edit persistence.conf.
Couple of questions/requests to you, dzz:
- I think you mentioned that you wrote a hook to delete 70-persistent-net.rules. I'd like to add that.
70-persistent-net.rules cause havoc when you boot a full-persistence live image in a different machine
post2885.html?hilit=70%20persistent%20net.rules#p2885.fsr:
- Might also want to add the hood for writable rootfs
Assuming you mean hook, and "writable rootfs" means the live-media partition (usb) is writable, this still works in wheezy and current sid: http://exegnulinux.net/refracta/experim ... trd.tar.gz It merely generates an alternative initrd.custom.img (does not modify the actual system's live-boot code)
For some years, whenever someone asks official debian-live for this it gets ignored or pushed to the bottom of the "wishlist" department. There is no good reason why it must be RO with no exceptions.fsr:
- Is there any reason why I can't remove the need for running a terminal with the script?
Was (only) my preference, when I first did live-usb installers, to use xterm. I also used "pv" to show a progress bar for longer operations like copying a large iso. Shows what's going on better than a pulsating dialog.
fsmithred wrote:Yeah, I meant hook and writable live media partition. I got the tarball but haven't looked at it yet. Thanks.
Not sure the hook is needed anymore. My sid does not have 70-persistent-net.rules, but it does have the 75-persistent-net-generator.rules file. I don't know if that's because it's installed in vbox or if it's something else. I need to start keeping a list of things that are different or missing in sid.
dzz wrote:fsr:
My sid does not have 70-persistent-net.rules
Mine do, seems no different from wheezy, however they are "real" installs not vm's. That was my workaround. Else every time you boot a different machine eth0 becomes eth1 then eth2... then you have to reconfigure networking manually. I never bothered with a live-config script because it only needs doing one time in a full-persist setup.
With my usb installers I tried including features like that (and editing persistence.conf).. then what was originally a fairly simple bash script got a lot larger, more complex and more work to maintain..
Anyway, there it is (patch-live-initrd) as a stand-alone script complete with "readme" file. It simply generates an alternative initrd to (optionally) boot from, with a couple of files patched in the initrd only.
Reasons I started doing usb installers: I don't like the dd method, chopping small drives into partitions, unutbootin. I do like the option to multiboot and that the device be usable on all platforms, for which we must live with the horrible FAT filesystem.I realize that we should probably start a new thread.
Yes, somewhat OT from Installer option: "Do not format" !
Thu Nov 07, 2013 4:07 pm
Thu Nov 07, 2013 11:06 pm
Does encrypted persistence work with the patched initrd?
Sat Nov 09, 2013 10:44 pm
Sun Nov 10, 2013 2:47 pm
if [[ -z "$usbdevfulllist" ]] ; then
# exit_message=" Warning: No USB devices detected. Exiting..."
# exit_dialog
$DIALOG --$QUESTION --title="$TITLE" --text="No USB drive was detected. You need to plug in the drive before starting this program.
Continue if you just want to look at the program." \
--${BUTTON0}="Continue"${BUTTON0NUM} --${BUTTON1}="Exit"${BUTTON1NUM}
if [[ $? = 0 ]] ; then
run_task
else
exit 0
fi
fi
Sun Nov 10, 2013 3:53 pm
if [[ -z "$usbdevfulllist" ]] ; then
no_device_message="\n ### No usb device was detected. Plug it in and Rescan. ###"
run_task
fi
if [[ $opts =~ Rescan ]] ; then
select_device_gui
unset no_device_message
egress
fi
Sun Nov 10, 2013 11:58 pm
I've arranged it so that you go back to the main menu when a task is finished
Mon Nov 11, 2013 11:06 am
Fri Nov 15, 2013 12:19 am
Fri Nov 15, 2013 12:34 pm