On Thu, April 2, 2009 19:41, Carlos Temes wrote: > When I use the boot parameter "persistent" everything works OK and the > second partition is mounted as /home, but when I use "persistent=nofiles" > the boot system don't find the home partition. > > Is there a way to make it work with the "persistent=nofiles" parameter? > I've been trying to fix the problem I had, and discovered another one with the "persistent" parameter in Lenny:
- using "persistent" when there are two partitions, "live-rw" and home-rw", it only finds/mounts the first one. - using "persistent=nofiles" can't find none of them. I've made a little patch to "live-helpers" file that fix half of the problem. When there are only one partition ("live-rw" or "home-rw") it works Ok. If both partitions exist, mount the "live-rw" partition first (and create the user's home inside), the next step mount the "home-rw" on /home making user's home not accesible. Regards, Carlos
--- scripts/live-helpers.orig 2009-04-09 20:43:14.000000000 +0200 +++ scripts/live-helpers 2009-04-09 20:45:39.000000000 +0200 @@ -314,8 +314,8 @@ if echo "${black_listed_devices}" | grep -q "${devname}" then - # skip this device enterely - break + # skip this device + continue fi if [ "$(/lib/udev/vol_id -l ${devname} 2>/dev/null)" = "${pers_label}" ] @@ -328,7 +328,7 @@ then # do not mount the device to find for image files # just skip this - break + continue fi case "$(get_fstype ${devname})" in