File: 2012-05-24.preos

package info (click to toggle)
cdist 7.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,992 kB
  • sloc: sh: 16,815; python: 9,199; makefile: 344; awk: 261
file content (72 lines) | stat: -rw-r--r-- 3,216 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Todo for preos:

get debian installer (?)
    x86, amd64
configure sshd
    add authorized_keys
output files
    tftp: cuni:    curl -s "http://http.us.debian.org/debian/dists/$version/main/installer-$arch/current/images/netboot/netboot.tar.gz" | tar xz
    iso


http://wiki.debian.org/DebianInstaller/
--------------------------------------------------------------------------------
debootstrap:
    [19:33] brief:hack% sudo debootstrap squeeze ./debian-squeeze
    [19:30] brief:hack# du -sh .
    213M    .

install kernel
    [19:35] brief:hack# chroot debian-squeeze/ apt-get -y install linux-image-amd64 
    [19:37] brief:debian-squeeze# ls boot/initrd*                   
    boot/initrd.img-2.6.32-5-amd64
    [19:37] brief:debian-squeeze# ls boot/vmlinuz*
    boot/vmlinuz-2.6.32-5-amd64

install sshd
    [19:37] brief:hack# chroot debian-squeeze/ apt-get -y --force-yes install openssh-server 

    - connect back?
    - generate sshd keys?

--------------------------------------------------------------------------------
initramfs:
       find . -print0 | bsdcpio $( (( QUIET )) && echo '--quiet' ) -R 0:0 -0oH newc | $COMPRESSION $COMPRESSION_OPTIONS > "$IMGPATH"

    /init for booting
    find . -print0 | cpio --null -ov --format=newc | gzip -9 > /boot/my-initramfs.cpio.gz
    cpio -H newc -o
    find . | cpio -H newc -o > ../initramfs.cpio # <-- this is the actual initramfs


[19:39] brief:debian-squeeze# find . | bsdcpio -H newc -o > ../initramfs.cpio 
[19:43] brief:debian-squeeze# xz ../initramfs.cpio


--------------------------------------------------------------------------------
cdrom:
    http://tldp.org/HOWTO/Bootdisk-HOWTO/cd-roms.html

--------------------------------------------------------------------------------

[19:34] brief:hack# chroot debian-squeeze/ apt-cache search kernel | grep linux-image
linux-image-2.6.32-5-amd64-dbg - Debugging infos for Linux 2.6.32-5-amd64
linux-image-2.6.32-5-amd64 - Linux 2.6.32 for 64-bit PCs
linux-image-2.6.32-5-openvz-amd64-dbg - Debugging infos for Linux 2.6.32-5-openvz-amd64
linux-image-2.6.32-5-openvz-amd64 - Linux 2.6.32 for 64-bit PCs, OpenVZ support
linux-image-2.6.32-5-vserver-amd64-dbg - Debugging infos for Linux 2.6.32-5-vserver-amd64
linux-image-2.6.32-5-vserver-amd64 - Linux 2.6.32 for 64-bit PCs, Linux-VServer support
linux-image-2.6.32-5-xen-amd64-dbg - Debugging infos for Linux 2.6.32-5-xen-amd64
linux-image-2.6.32-5-xen-amd64 - Linux 2.6.32 for 64-bit PCs, Xen dom0 support
linux-image-2.6-amd64 - Linux 2.6 for 64-bit PCs (meta-package)
linux-image-2.6-openvz-amd64 - Linux 2.6 for 64-bit PCs (meta-package), OpenVZ support
linux-image-2.6-vserver-amd64 - Linux 2.6 for 64-bit PCs (meta-package), Linux-VServer support
linux-image-2.6-xen-amd64 - Linux 2.6 for 64-bit PCs (meta-package), Xen dom0 support
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-openvz-amd64 - Linux for 64-bit PCs (meta-package), OpenVZ support
linux-image-vserver-amd64 - Linux for 64-bit PCs (meta-package), Linux-VServer support
linux-image-xen-amd64 - Linux for 64-bit PCs (meta-package), Xen dom0 support
[19:34] brief:hack# 

--------------------------------------------------------------------------------