Editing Debian LiveCD
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
=Introduction= | =Introduction= | ||
Line 7: | Line 5: | ||
=Creating Initial System with debootstrap= | =Creating Initial System with debootstrap= | ||
<pre> | |||
apt-get install debootstrap | apt-get install debootstrap | ||
Line 65: | Line 62: | ||
tasksel install standard | tasksel install standard | ||
aptitude install binutils gcc make git vim openssh-server sudo | aptitude install binutils gcc make git vim openssh-server sudo wpasupplicant libssl-dev | ||
aptitude install gcc-spu g++-spu newlib-spu spu-tools | aptitude install gcc-spu g++-spu newlib-spu spu-tools | ||
# Make SSH server start at boot so we could ssh to our LiveCD | # Make SSH server start at boot so we could ssh to our LiveCD | ||
Line 74: | Line 70: | ||
aptitude clean | aptitude clean | ||
</pre> | |||
=Creating Root Filesystem= | |||
<pre> | |||
< | |||
cd /root/livecd | cd /root/livecd | ||
mksquashfs * ../root.sfs | mksquashfs * ../root.sfs | ||
</ | </pre> | ||
=Modifying Root Filesystem= | =Modifying Root Filesystem= | ||
<pre> | |||
cd /root | cd /root | ||
unsquashfs root.sfs | unsquashfs root.sfs | ||
Line 104: | Line 89: | ||
mksquashfs * ../root-changed.sfs | mksquashfs * ../root-changed.sfs | ||
</ | </pre> | ||
=Linux 3 Kernel= | =Linux 3 Kernel= | ||
* We need a Linux 3 kernel with overlayfs support so we could create a tmpfs over our read-only base filesystem. | * We need a Linux 3 kernel with overlayfs support so we could create a tmpfs over our read-only base filesystem. | ||
* At the moment overlayfs is not supported on Linux 3.5 so it leaves us with Linux 3.4 which doesn't really matter because all my Linux 3 drivers are supported on Linux 3.4 just fine. | |||
* Furthermore, we want to compile PS3 HDD driver as module because in this case we can easily change HDD region flags. | * Furthermore, we want to compile PS3 HDD driver as module because in this case we can easily change HDD region flags. | ||
=Initramfs= | =Initramfs= | ||
<pre> | <pre> | ||
# Populate initramfs | # Populate initramfs | ||
Line 145: | Line 105: | ||
mkdir initramfs | mkdir initramfs | ||
cd initramfs | cd initramfs | ||
mkdir -p bin dev etc lib/modules/3. | mkdir -p bin dev etc lib/modules/3.4.9 mnt proc sbin sys usr | ||
for mod in fat vfat isofs crc-ccitt crc-itu-t lzo_compress udf squashfs overlayfs \ | for mod in fat vfat isofs crc-ccitt crc-itu-t lzo_compress udf squashfs overlayfs \ | ||
ps3_gelic ps3stor_lib sg ps3rom usb-common usbcore ehci-hcd ohci-hcd usb-storage; do | ps3_gelic ps3stor_lib sg ps3rom usb-common usbcore ehci-hcd ohci-hcd usb-storage; do | ||
path=`find /home/glevand/linux-3. | path=`find /home/glevand/linux-3.4.9-build/lib/modules/3.4.9 -name $mod.ko` | ||
cp $path lib/modules/3. | cp $path lib/modules/3.4.9/ | ||
done | done | ||
Line 187: | Line 118: | ||
cd .. | cd .. | ||
cat initramfs.cpio | gzip > initramfs.cpio.gz | cat initramfs.cpio | gzip > initramfs.cpio.gz | ||
</pre> | |||
=Downloads= | |||
= | |||
* vmlinux-3. | * vmlinux-3.4.9.xz: http://www.multiupload.nl/9C1XVAB3RU | ||
* | * initramfs.cpio.gz: http://www.multiupload.nl/KROXJ799N6 (MD5 8da82022b1c2541dc419619e710a0a3f) | ||
* | * root.sfs: http://www.multiupload.nl/NERXNME3JJ (MD5 e2ed20d27092105961507de5d7b49ed3) | ||
==USB== | ==USB== | ||
* Create '''debianlive''' directory on your USB drive. | * Create '''debianlive''' directory on your USB drive. | ||
* Put vmlinux-3. | * Put vmlinux-3.4.9 (extract xz archive), initramfs.cpio.gz and root.sfs into this directory. | ||
* And create kboot.conf in the root directory of your USB drive with this content: | * And create kboot.conf in the root directory of your USB drive with this content: | ||
<pre> | <pre> | ||
debianlive=/debianlive/vmlinux-3. | debianlive=/debianlive/vmlinux-3.4.9 initrd=/debianlive/initramfs.cpio.gz | ||
</pre> | </pre> | ||
==CDROM== | ==CDROM== | ||
=Links= | =Links= | ||
* http://securityfocus.eu/?p=149 | * http://securityfocus.eu/?p=149 | ||