Comment 21 for bug 62868

Revision history for this message
Aniruddha Shankar (kream) wrote : Re: [Bug 62868] Re: Broken PATH set by casper (Was: swap partitions not automounted by the LiveCD)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Successful! :)

This should be changed for feisty. Am detailing the steps I took, below, to help
anyone who needs to duplicate this.

Thanks,

Aniruddha Shankar

root@bhim:/cybermohalla/karim# mkdir initrd-tmp
root@bhim:/cybermohalla/karim# cd initrd-tmp/
gzip -dc /cybermohalla/karim/edgy-remaster/casper/initrd.gz | cpio -id
31444 blocks
root@bhim:/cybermohalla/karim/initrd-tmp# ls
bin conf etc init lib modules sbin scripts usr
root@bhim:/cybermohalla/karim/initrd-tmp# cd scripts/

root@bhim:/cybermohalla/karim/initrd-tmp/scripts# nano -w casper
root@bhim:/cybermohalla/karim/initrd-tmp/scripts# cat casper | head -

#!/bin/sh

# set -e

# Changed to try and fix bug 62868
# export
PATH=/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin
export PATH=/usr/bin:/usr/sbin:/bin:/sbin
root@bhim:/cybermohalla/karim/initrd-tmp/scripts# cd ..
root@bhim:/cybermohalla/karim/initrd-tmp# ls
bin conf etc init lib modules sbin scripts usr
# find . | cpio --quiet --dereference -o -H newc | gzip -9 > ~/new-initrd.gz
# mv new-initrd.gz /cybermohalla/karim/edgy-remaster/casper/initrd.gz

root@bhim:/cybermohalla/karim/edgy-remaster/casper# cd
/cybermohalla/karim/edgy-remaster/casper
root@bhim:/cybermohalla/karim/edgy-remaster/casper# ls -la
total 708616
dr-xr-xr-x 2 root root 4096 2007-01-31 17:30 .
dr-xr-xr-x 8 root root 4096 2006-11-22 15:22 ..
- -r--r--r-- 1 root root 26968 2006-12-27 17:36 filesystem.manifest
- -r--r--r-- 1 root root 26799 2006-12-27 17:36 filesystem.manifest-desktop
- -r-xr-xr-x 1 root root 717520896 2006-12-27 17:47 filesystem.squashfs
- -rw-r--r-- 1 root root 5670414 2007-01-31 17:27 initrd.gz
- -r--r--r-- 1 root root 1636681 2006-10-25 19:43 vmlinuz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFwL7qhJkrd6A3rSsRAgNnAKDDQ1s6INrqLPKabaPCPekCWj3JswCeKpJi
CPacW2rgLMAGeLurCDqN9d8=
=I951
-----END PGP SIGNATURE-----