[PATCH] fix LH_BOOTAPPEND_INSTALL expansion

2009-11-26 Thread Rui Miguel Bernardo
Hi, since live-helper 1.0.6, and also in LH2, I'm getting a very long content in LH_BOOTAPPEND_INSTALL because LH_BOOTAPPEND_LIVE is expanded each time "lh config" is executed. For example: $ lh config $ lh config --bootappend-live "locale=pt keyb=pt utc=no timezone=Europe/Lisbon quickreboot quie

Re: [BINARY-HOOK] Workaround to install from USB to disk in Lenny.

2009-11-10 Thread Rui Miguel Bernardo
yeah, I know. It's here. 10-fix-lenny-from-usb-installer Description: Binary data

[BINARY-HOOK] Workaround to install from USB to disk in Lenny.

2009-11-10 Thread Rui Miguel Bernardo
Hello, while we wait for Debian 6.0 Squeeze and the new debian-installer version that will be able to install the live system to disk from an USB media (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498143), and while there is no daily build of debian-installer from svn available for i386 (http

Re: How to run a script when the live system boots

2009-11-01 Thread Rui Miguel Bernardo
2009/10/27 os.n...@gmx.de : > Hello, > > I tried to run a script immediately after all other scripts when the live > system boots. I read the FAQ and did the following: > > mkdir -p > config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom > > Then I wrote the following script

prevent udev from remembering eth0 (wicd problem)

2009-11-01 Thread Rui Miguel Bernardo
2009/11/1 Rob Owens : > How can I make Debian *not* remember the interfaces in > 70-persistent-net.rules?  75-persistent-net-generator.rules seems like a > starting point, but I'm not brave enough to tinker w/ udev stuff yet... Hello, you can exclude some files from being saved to the snapshot. F

[PATCH] add apt pinning support to LH1

2009-10-27 Thread Rui Miguel Bernardo
Sry, forgot to add the patch itself... diff --git a/helpers/lh_chroot_apt b/helpers/lh_chroot_apt --- a/helpers/lh_chroot_apt +++ b/helpers/lh_chroot_apt @@ -120,11 +120,6 @@ case "${1}" in if Find_files config/chroot_local-packages/*.deb then - if [ ! -f config/chroot_apt/preferences ] &

[PATCH] add apt pinning support to LH1

2009-10-27 Thread Rui Miguel Bernardo
Hi everyone, after having build a good and strong stable live system, i've had the need to pinning some packages from other repositories. I haven't done it in live-helper and never tried. From reading this maillist I thought it was possible, but it wasn't. After looking at the source of lh_chroot

Re: How to change the kernel title in /boot/grub/menu.lst?

2009-10-02 Thread Rui Miguel Bernardo
Hi Surreal, You can do changes to the final binary by putting a hook in config/binary_local-hooks/. Those hooks will be executed after the binary is built, but before the final binary image is created (iso or img file). I use syslinux/extlinux, not grub, so the following have to be adapted to gru

Re: [HOOK] losetup lukshome - working and tested encrypted home

2009-08-27 Thread Rui Miguel Bernardo
2009/8/24 Daniel Baumann : > Rui Miguel Bernardo wrote: >> Have fun, > > ... included it in examples/hooks (and removed useless whitespaces at > EOL), thanks ;) > > Regards, > Daniel Your welcome :) I didn't expect this to get into the examples hooks, so here ar

Re: [HOOK] losetup lukshome - working and tested encrypted home

2009-08-23 Thread Rui Miguel Bernardo
Loosing your USB live system with important non-encrypted data is bad, loosing your USB live system encrypted data is bad also, but much less than the first - if you backup regularly. USB memories aren't hard disks, and even those fail. After having my USB pen plugged in some printer with a USB co

Re: [HOOK] yet another encrypted home hook

2009-08-02 Thread Rui Miguel Bernardo
Using persistent option with this hook installed was not possible,just if you used it with lukshome. Corrected. - #!/bin/sh # This hook will add an entry to crypttab and to fstab so the default # boot system of debian will mount an encrypted partition as /home. # # 1 - Create a pa

[HOOK] yet another encrypted home hook

2009-08-02 Thread Rui Miguel Bernardo
Hello everyone, after trying to use and fix live-helpers encrypted persistent home feature, and not getting anywhere, although I think its a redirection problem in the live script itself or something related to this bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507722 (I really don't know)

Re: Bug#522382: live-initramfs: using 'persistent=nofiles' parameter [PATCH]

2009-07-29 Thread Rui Miguel Bernardo
2009/7/29 Daniel Baumann > Rui Miguel Bernardo wrote: > > Here is a correct patch (I hope). > > for the records (it doesn't matter here, but it's a major nuissance in > general when sending patches): your diff is somewhat cluttered, you > should only change what

Re: Bug#522382: live-initramfs: using 'persistent=nofiles' parameter [PATCH]

2009-07-27 Thread Rui Miguel Bernardo
In my previous message I've made a patch using wrong directories and diff wrong options (I've noticed it while trying to use config/chroot_local-patches). Sorry about that. Here is a correct patch (I hope). ii live-helper 1.0.5+20090630.183258 Debian Live build scripts ii

cryptsetup and how to create luks partiton?

2009-07-27 Thread Rui Miguel Bernardo
Hi, recently live-helpers was corrected for cryptsetup calls for persistency on luks. http://git.debian.net/?p=debian-live/live-initramfs.git;a=commit;h=d6df808045a033b717c2a9a903ed4f9cbb7c67a4 I was trying to use this feature but I was getting the following error: /lib/cryptsetup/askpass Enter

Re: Bug#522382: live-initramfs: using 'persistent=nofiles' parameter

2009-07-27 Thread Rui Miguel Bernardo
Hello, with persistent=nofiles the devices weren't all scanned, while with just persistent they where. It seemed that the break statement in live-helpers was preventing that from happening. I've removed the break, so every device is scanned and only try to mount partitions if persistent != nofile