Debian Codegraph @

docs/dev/logs/2012-05-24.preos

raw
1 Todo for preos:
2
3 get debian installer (?)
4 x86, amd64
5 configure sshd
6 add authorized_keys
7 output files
8 tftp: cuni: curl -s "http://http.us.debian.org/debian/dists/$version/main/installer-$arch/current/images/netboot/netboot.tar.gz" | tar xz
9 iso
10
11
12 http://wiki.debian.org/DebianInstaller/
13 --------------------------------------------------------------------------------
14 debootstrap:
15 [19:33] brief:hack% sudo debootstrap squeeze ./debian-squeeze
16 [19:30] brief:hack# du -sh .
17 213M .
18
19 install kernel
20 [19:35] brief:hack# chroot debian-squeeze/ apt-get -y install linux-image-amd64
21 [19:37] brief:debian-squeeze# ls boot/initrd*
22 boot/initrd.img-2.6.32-5-amd64
23 [19:37] brief:debian-squeeze# ls boot/vmlinuz*
24 boot/vmlinuz-2.6.32-5-amd64
25
26 install sshd
27 [19:37] brief:hack# chroot debian-squeeze/ apt-get -y --force-yes install openssh-server
28
29 - connect back?
30 - generate sshd keys?
31
32 --------------------------------------------------------------------------------
33 initramfs:
34 find . -print0 | bsdcpio $( (( QUIET )) && echo '--quiet' ) -R 0:0 -0oH newc | $COMPRESSION $COMPRESSION_OPTIONS > "$IMGPATH"
35
36 /init for booting
37 find . -print0 | cpio --null -ov --format=newc | gzip -9 > /boot/my-initramfs.cpio.gz
38 cpio -H newc -o
39 find . | cpio -H newc -o > ../initramfs.cpio # <-- this is the actual initramfs
40
41
42 [19:39] brief:debian-squeeze# find . | bsdcpio -H newc -o > ../initramfs.cpio
43 [19:43] brief:debian-squeeze# xz ../initramfs.cpio
44
45
46 --------------------------------------------------------------------------------
47 cdrom:
48 http://tldp.org/HOWTO/Bootdisk-HOWTO/cd-roms.html
49
50 --------------------------------------------------------------------------------
51
52 [19:34] brief:hack# chroot debian-squeeze/ apt-cache search kernel | grep linux-image
53 linux-image-2.6.32-5-amd64-dbg - Debugging infos for Linux 2.6.32-5-amd64
54 linux-image-2.6.32-5-amd64 - Linux 2.6.32 for 64-bit PCs
55 linux-image-2.6.32-5-openvz-amd64-dbg - Debugging infos for Linux 2.6.32-5-openvz-amd64
56 linux-image-2.6.32-5-openvz-amd64 - Linux 2.6.32 for 64-bit PCs, OpenVZ support
57 linux-image-2.6.32-5-vserver-amd64-dbg - Debugging infos for Linux 2.6.32-5-vserver-amd64
58 linux-image-2.6.32-5-vserver-amd64 - Linux 2.6.32 for 64-bit PCs, Linux-VServer support
59 linux-image-2.6.32-5-xen-amd64-dbg - Debugging infos for Linux 2.6.32-5-xen-amd64
60 linux-image-2.6.32-5-xen-amd64 - Linux 2.6.32 for 64-bit PCs, Xen dom0 support
61 linux-image-2.6-amd64 - Linux 2.6 for 64-bit PCs (meta-package)
62 linux-image-2.6-openvz-amd64 - Linux 2.6 for 64-bit PCs (meta-package), OpenVZ support
63 linux-image-2.6-vserver-amd64 - Linux 2.6 for 64-bit PCs (meta-package), Linux-VServer support
64 linux-image-2.6-xen-amd64 - Linux 2.6 for 64-bit PCs (meta-package), Xen dom0 support
65 linux-image-amd64 - Linux for 64-bit PCs (meta-package)
66 linux-image-openvz-amd64 - Linux for 64-bit PCs (meta-package), OpenVZ support
67 linux-image-vserver-amd64 - Linux for 64-bit PCs (meta-package), Linux-VServer support
68 linux-image-xen-amd64 - Linux for 64-bit PCs (meta-package), Xen dom0 support
69 [19:34] brief:hack#
70
71 --------------------------------------------------------------------------------
72