View Single Post
Old August 21st, 2007   #157
SurJector
First Cup of Ubuntu
 
Join Date: Aug 2007
Beans: 1
Different solution

Hi,

I've had the same problem as everybody here. I've found what I think is a
different solution.

I've needed to modify exactly one file on the initrd: init. More precisely:

In the initrd, there is exactly one file in the root directory. This file is named
init. What I had to modify is the following: there is a big 'case $x in ... esac'.
I've just added the following lines just after the

Code:
break)
        break=premount
        ;;
and just before the "esac":

Code:
persistent)
        PERSISTENT=yes
        root_persistence=casper-rw
        home_persistence=home-rw
        ;;
To modify the initrd.gz file you need to do the following:

Code:
mkdir initrd
cd initrd
gzip -dc /media/cdrom/isolinux/initrd.gz | cpio -i
< change the file "init" as indicated above, using your favorite text editor >
find . | cpio -o -H newc | gzip -9 > ../initrd.gz
You must them either remaster the cd or simply change the initrd.gz on
your USB key. You can keep each and every other file as is in Feisty, no
need to pin, you're free to upgrade.

To be cleaner, you can move the two root_persistence=casper-rw and
home_persistence=home-rw in file etc/casper.conf (or even in file
scripts/casper).

SurJector (posting from its persistent USB key).
SurJector is offline   Reply With Quote