綾小路龍之介の素人思考

[debian] debootstrap でブート可能なシステムを作る手順

tiny core linux で一時的に起動して、debootstrap を使ってシステムを作る。その後tiny core が無くてもブートできるようにする。幸いなことに、tiny core は ar wget perl と揃っているので、使いやすそうな予感。

tiny core linux の iso ファイルをダウンロードして、cd に書き込んで、それでブートする。

$ wget http://distro.ibiblio.org/tinycorelinux/6.x/x86/release/CorePlus-current.iso

"Boot Core to command line only. No X/GUI or extentions." で起動。

インストールしたいディスク /dev/sdz を zero-fill してパーティションテーブルから内容まで全部削除。dd で in と out のブロック数が 1 だけ違って良い。badblocks でチェックするならこれは不要。

$ sudo dd if=/dev/zero of=/dev/sdz
dd: writing '/dev/sdz': No space left on device
2822401+0 records in
2822400+0 records out
1445068800 bytes (1.3GB) copied, 780.961711 seconds, 1.8MB/s
$ fdisk -l /dev/sdz

Disk /dev/sdz: 1445 MB, 1445068800 bytes
255 heads, 63 sectors/track, 175 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdz doesn't contain a valid partition table

badblocks でエラーチェック。

$ tce-load -iw e2fsprogs.tcz
Downloading: e2fsprogs.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
e2fsprogs.tcz        100% |****************|   176k  0:00:00 ETA
e2fsprogs.tcz: OK
$ sudo badblocks -v -s -w -o badblocks_sdz.txt /dev/sdz
Checking for bad blocks in read-write mode
From block 0 to 1411199
Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
Pass completed, 0 bad blocks found. (0/0/0 errors)

パーティション分割をやり直す。最終的には、/dev/sdz1 が swap、/dev/sdz2 が Tiny Core system、/dev/sdz3 が wheezy system、/dev/sdz4 が jessie システムのようにする予定。

$ fdisk -l /dev/sdz

Disk /dev/sdz: 1445 MB, 1445068800 bytes
255 heads, 63 sectors/track, 175 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdz doesn't contain a valid partition table
$ sudo fdisk /dev/sdz
(snip)
$ fdisk -l /dev/sdz

Disk /dev/sdz: 1445 MB, 1445068800 bytes
255 heads, 63 sectors/track, 175 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdz1               1          13      104391  83 Linux
/dev/sdz2              14          25       96390  83 Linux
/dev/sdz3              26         100      602437+ 83 Linux
/dev/sdz4             101         175      602437+ 83 Linux

まずは swap パーティションの作成と swapon。

$ cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/zram0                              partition       8312    7996    -1
$ mkswap /dev/sdz1
Setting up swapspace version 1, size = 106892288 bytes
UUID=********-****-****-****-************
$ sync; sync; sync
$ sudo swapon /dev/sdz1
$ cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/zram0                              partition       8312    7968    -1
/dev/sdz1                               partition       104384  0       -2

次にパーティションフォーマット。相変わらず破壊的テストでストレスかけておく。

$ mkfs.ext4 -c -c /dev/sdz2
mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 96388 1k blocks and 24192 inodes
Filesystem UUID: 8d6e1bcb-9665-45ce-b995-30a7974fb37e
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729

Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

$ mkfs.ext4 -c -c /dev/sdz3
mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 150609 4k blocks and 37680 inodes
Filesystem UUID: 12811680-87e2-408a-9745-65a2d144fd31
Superblock backups stored on blocks:
        32768, 98304

Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

$ mkfs.ext4 -c -c /dev/sdz4
mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 150609 4k blocks and 37680 inodes
Filesystem UUID: ab0186b5-58a2-4531-93fc-240815853ca4
Superblock backups stored on blocks:
        32768, 98304

Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

ここまで終わったら shutdown しておく

$ sudo poweroff

Tiny Core を HDD にインストール、sshd の永続化

"Boot Core with only X/GUI (TinyCore) + installation Extention." で起動して、HDD (/dev/sdz2) にインストール。途中の bootcodes で noautologin と verbose を追加。その後再起動。

初回起動時は起動失敗 (/dev/sdz2 でブートするようになってないので) 。適当なブートマネージャ (MBM, PLoP) を MBR にインストールして /dev/sdz2 から起動させる。

Tiny Core が起動したら、tcユーザ (パスワード不要) でログインして、sshdのインストール。passwd で適当なパスワードを設定して ssh ログインできるようにしておく。あとは ssh 経由で作業。

$ tce-load -iw openssh
openssh.tcz.dep OK
Downloading: openssl-1.0.1.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
openssl-1.0.1.tcz    100% |***************|  1584k  0:00:00 ETA
openssl-1.0.1.tcz: OK
Downloading: openssh.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
openssh.tcz          100% |***************|  1992k  0:00:00 ETA
openssh.tcz: OK
$ sudo passwd tc
Changing password for tc
New password:
Bad password: too short
Retype password:
Password for tc changed by root
$ sudo /usr/local/etc/init.d/openssh start
Generating public/private rsa key pair.
Your identification has been saved in /usr/local/etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /usr/local/etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
*********************************************** root@box
The key's randomart image is:
+---[RSA 2048]----+
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /usr/local/etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /usr/local/etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
*********************************************** root@box
The key's randomart image is:
+---[DSA 1024]----+
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
+-----------------+
Generating public/private ecdsa key pair.
Your identification has been saved in /usr/local/etc/ssh/ssh_host_ecdsa_key.
Your public key has been saved in /usr/local/etc/ssh/ssh_host_ecdsa_key.pub.
The key fingerprint is:
*********************************************** root@box
The key's randomart image is:
+---[ECDSA 256]---+
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
+-----------------+
Generating public/private ed25519 key pair.
Your identification has been saved in /usr/local/etc/ssh/ssh_host_ed25519_key.
Your public key has been saved in /usr/local/etc/ssh/ssh_host_ed25519_key.pub.
The key fingerprint is:
*********************************************** root@box
The key's randomart image is:
+--[ED25519 256]--+
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
|*****************|
+-----------------+

ログインするとこんな感じ。

$ TERM=vt100 ssh -X -l tc 192.168.12.3
tc@192.168.12.3's password:
X11 forwarding request failed on channel 0
 (�-
 //\   Core is distributed with ABSOLUTELY NO WARRANTY.
 v_/_           www.tinycorelinux.com

tc@box:~$

設定を永続的なものにするために保存しておくべきファイルを設定して、それらをバックアップ。

$ echo '/usr/local/etc/init.d/openssh start' >> /opt/bootlocal.sh
$ cat << EOT >> /opt/.filetool.lst
/usr/local/etc/ssh
/etc/passwd
/etc/shadow
EOT
$ filetool.sh -b
Backing up files to /mnt/sdz2/tce/mydata.tgz

これでtcユーザのパスワードとsshdのブート時起動が有効化されたはずなので一旦reboot。

$ sudo reboot

再度sshでログインできるか確認。OK。

$ TERM=vt100 ssh -X -l tc 192.168.12.3
tc@192.168.12.3's password:
X11 forwarding request failed on channel 0
 (�-
 //\   Core is distributed with ABSOLUTELY NO WARRANTY.
 v_/_           www.tinycorelinux.com

tc@box:~$

必要ならやること

screen をインストール。

$ tce-load -iw screen.tcz
screen.tcz.dep OK
Downloading: ncurses.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
ncurses.tcz          100% |****************|   232k  0:00:00 ETA
ncurses.tcz: OK
Downloading: screen.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
screen.tcz           100% |****************|   448k  0:00:00 ETA
screen.tcz: OK
$ screen -D -RR

ブート後に tc ユーザで自動ログインされるのと、ブート中のメッセージを表示させるために以下のファイルを編集。カーネルパラメータから quit を削除して noautologin を追加。

$ vi /mnt/sdz2/tce/boot/extlinux/extlinux.conf

以降は debian セットアップ用環境の作成

まずは必要なもののインストール。最後にrootになっておく。

$ tce-load -iw e2fsprogs.tcz
Downloading: e2fsprogs.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
e2fsprogs.tcz        100% |***********************************|   176k  0:00:00 ETA
e2fsprogs.tcz: OK
$ sudo su

ハードディスクのパーティション確認。

$ fdisk -l /dev/sdz

Disk /dev/sdz: 1445 MB, 1445068800 bytes
64 heads, 63 sectors/track, 700 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdz1               1         300      604768+ 83 Linux
/dev/sdz2   *         301         600      604800  83 Linux
/dev/sdz3             601         700      201600  83 Linux

/dev/sdz1 を ext4 でフォーマット、/dev/sdz3 は swap にして swapon。これでhddの準備終了。

tc@box:~$ mkfs.ext4 -c -c /dev/sdz1
mke2fs 1.42.12 (29-Aug-2014)
/dev/sdz1 contains a ext4 file system
        last mounted on /mnt/debinst on Thu May  7 07:02:21 2015
Proceed anyway? (y,n) y
Creating filesystem with 151192 4k blocks and 37840 inodes
Filesystem UUID: 9860a3cb-1c3a-4584-927a-358d155be0ec
Superblock backups stored on blocks:
        32768, 98304

Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

debian-installer netbootの場合

debian-installer のカーネルと RAM ディスクを適当なパーティションに保存。

$ sudo mkdir /mnt/sda2/di_wheezy
$ cd /mnt/sda2/di_wheezy/
$ sudo wget 'http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-i386/current/images/netboot/debian-installer/i386/linux'
Connecting to ftp.nl.debian.org (130.89.149.21:80)
linux                100% |*********************|  2456k  0:00:00 ETA
$ sudo wget 'http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz'
Connecting to ftp.nl.debian.org (130.89.149.21:80)
initrd.gz            100% |*********************| 10231k  0:00:00 ETA
$ sudo mkdir /mnt/sda2/di_jessie
$ cd /mnt/sda2/di_jessie/
$ sudo wget 'http://ftp.nl.debian.org/debian/dists/jessie/main/installer-i386/current/images/netboot/debian-installer/i386/linux'
Connecting to ftp.nl.debian.org (130.89.149.21:80)
linux                100% |*********************|  2752k  0:00:00 ETA
$ sudo wget 'http://ftp.nl.debian.org/debian/dists/jessie/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz'
Connecting to ftp.nl.debian.org (130.89.149.21:80)
initrd.gz            100% |*********************| 14313k  0:00:00 ETA
$ sudo vi /mnt/sda2/tce/boot/extlinux/extlinux.conf
$ cat /mnt/sda2/tce/boot/extlinux/extlinux.conf
DEFAULT core
LABEL core
KERNEL /tce/boot/vmlinuz
APPEND initrd=/tce/boot/core.gz quiet  verbose noautologin waitusb=5:UUID="8d6e1bcb-9665-45ce-b995-30a7974fb37e" tce=UUID="8d6e1bcb-9665-45ce-b995-30a7974fb37e"

LABEL di_wheezy_net
KERNEL /di_wheezy/netboot/linux
APPEND initrd=/di_wheezy/netboot/initrd.gz

LABEL di_wheezy_hd
KERNEL /di_wheezy/hd-media/linux
APPEND initrd=/di_wheezy/hd-media/initrd.gz

LABEL di_jessie
KERNEL /di_jessie/linux
APPEND initrd=/di_jessie/initrd.gz

PROMPT 1
TIMEOUT 300
$ sudo poweroff

このマシンだと予め e100/d101m_ucode.bin が無いと言われることがわかっているので、適当なファームウェア集をダウンロードして、適切なファイルだけ解凍しておく。

$ wget http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/wheezy/current/firmware.tar.gz
Connecting to cdimage.debian.org (130.239.18.173:80)
Connecting to caesar.acc.umu.se (130.239.18.142:80)
firmware.tar.gz      100% |**************| 14792k  0:00:00 ETA
$ tar ztfv firmware.tar.gz
drwxr-xr-x root/root         0 2015-01-10 22:24:28 ./
-rw-r--r-- root/root      9768 2015-01-10 22:24:26 ./firmware-b43-installer_015-14.1_all.deb
-rw-r--r-- root/root      9690 2015-01-10 22:24:26 ./firmware-b43-lpphy-installer_015-14.1_all.deb
-rw-r--r-- root/root      9330 2015-01-10 22:24:26 ./firmware-b43legacy-installer_015-14.1_all.deb
-rw-r--r-- root/root     44210 2015-01-10 22:24:26 ./prism2-usb-firmware-installer_0.2.9+dfsg-5_amd64.deb
-rw-r--r-- root/root     44072 2015-01-10 22:24:26 ./prism2-usb-firmware-installer_0.2.9+dfsg-5_armel.deb
-rw-r--r-- root/root     43762 2015-01-10 22:24:26 ./prism2-usb-firmware-installer_0.2.9+dfsg-5_armhf.deb
-rw-r--r-- root/root     43966 2015-01-10 22:24:26 ./prism2-usb-firmware-installer_0.2.9+dfsg-5_i386.deb
-rw-r--r-- root/root     44276 2015-01-10 22:24:26 ./prism2-usb-firmware-installer_0.2.9+dfsg-5_powerpc.deb
-rw-r--r-- root/root     20662 2015-01-10 22:24:26 ./firmware-linux-free_3.2_all.deb
-rw-r--r-- root/root     28006 2015-01-10 22:24:27 ./amd64-microcode_1.20120910-2_amd64.deb
-rw-r--r-- root/root     27374 2015-01-10 22:24:27 ./amd64-microcode_1.20120910-2_i386.deb
-rw-r--r-- root/root    467450 2015-01-10 22:24:27 ./atmel-firmware_1.3-4_all.deb
-rw-r--r-- root/root     72672 2015-01-10 22:24:27 ./bluez-firmware_1.2-3_all.deb
-rw-r--r-- root/root    495008 2015-01-10 22:24:27 ./firmware-atheros_0.36+wheezy.1_all.deb
-rw-r--r-- root/root    318562 2015-01-10 22:24:27 ./firmware-bnx2_0.36+wheezy.1_all.deb
-rw-r--r-- root/root    906528 2015-01-10 22:24:27 ./firmware-bnx2x_0.36+wheezy.1_all.deb
-rw-r--r-- root/root     55558 2015-01-10 22:24:27 ./firmware-brcm80211_0.36+wheezy.1_all.deb
-rw-r--r-- root/root   2354806 2015-01-10 22:24:27 ./firmware-intelwimax_0.36+wheezy.1_all.deb
-rw-r--r-- root/root    523932 2015-01-10 22:24:27 ./firmware-ipw2x00_0.36+wheezy.1_all.deb
-rw-r--r-- root/root    136754 2015-01-10 22:24:27 ./firmware-ivtv_0.36+wheezy.1_all.deb
-rw-r--r-- root/root   3578810 2015-01-10 22:24:27 ./firmware-iwlwifi_0.36+wheezy.1_all.deb
-rw-r--r-- root/root   1512110 2015-01-10 22:24:27 ./firmware-libertas_0.36+wheezy.1_all.deb
-rw-r--r-- root/root    668042 2015-01-10 22:24:27 ./firmware-linux-nonfree_0.36+wheezy.1_all.deb
-rw-r--r-- root/root    549830 2015-01-10 22:24:27 ./firmware-myricom_0.36+wheezy.1_all.deb
-rw-r--r-- root/root   1414566 2015-01-10 22:24:27 ./firmware-netxen_0.36+wheezy.1_all.deb
-rw-r--r-- root/root    526420 2015-01-10 22:24:27 ./firmware-qlogic_0.36+wheezy.1_all.deb
-rw-r--r-- root/root     21386 2015-01-10 22:24:27 ./firmware-ralink_0.36+wheezy.1_all.deb
-rw-r--r-- root/root    214558 2015-01-10 22:24:27 ./firmware-realtek_0.36+wheezy.1_all.deb
-rw-r--r-- root/root    427036 2015-01-10 22:24:27 ./intel-microcode_1.20140913.1_amd64.deb
-rw-r--r-- root/root    570334 2015-01-10 22:24:27 ./intel-microcode_1.20140913.1_i386.deb
-rw-r--r-- root/root      8720 2015-01-10 22:24:27 ./ixp4xx-microcode_2.4-3_armel.deb
-rw-r--r-- root/root      7464 2015-01-10 22:24:27 ./libertas-firmware_9.70.7.p0.0-2_all.deb
-rw-r--r-- root/root     16458 2015-01-10 22:24:28 ./zd1211-firmware_2.21.0.0-1_all.deb
$ tar zxfv firmware.tar.gz ./firmware-linux-nonfree_0.36+wheezy.1_all.deb
./firmware-linux-nonfree_0.36+wheezy.1_all.deb
$ sudo mkdir /mnt/sda2/firmware
$ sudo mv firmware-linux-nonfree_0.36\+wheezy.1_all.deb /mnt/sda2/firmware/

ほっとけば core が起動。boot: プロンプトでdi_wheezyを入力すればそのカーネルが起動することを確認。OK。

usb にマウント用fs (500MB) とswap (500MB) をファイルとして作成。インストール中に使う。

$ sudo mount /dev/sdb1 /mnt/sdb1
$ sudo dd if=/dev/zero of=/mnt/sdb1/ext2fs0 bs=1024 count=500k
$ sudo mkfs.ext2 -c -c /dev/sdb1/ext2fs0
$ sudo dd if=/dev/zero of=/mnt/sdb1/swap0 bs=1024 count=500K
$ sudo chmod 600 /mnt/sdb1/swap0
$ sudo mkswap /mnt/sdb1/swap0

wheezy netboot の場合

boot: di_wheezy_netとしてwheezyのdebian-installerのnetbootカーネルで起動。"Configure the network" が表示されるまではいつもどおり進む。"Configure the network" が表示されたらAlt+F2でコンソール。(その前だとusbメモリがマウントできないし、"Download install components" の後だとメモリ不足で進まなくなる。)

# mkdir /mnt/usb
# mount /dev/sda1 /mnt/usb/
# swapon /mnt/usb/swap0
# cat /proc/swap0
# find > /mnt/usb/filelist_00.txt

Download install componentsで最初は何も選択しない。

"Detect disks"でシステムをインストールする hdd の選択画面まで来る。usb しか表示されないので、インストーラコンポーネントを選択する。

改めてDownload install componentsで以下を選択。"Detect disks"でHDDも見えるようになったので、再度Download install componentsに戻って"Set up users and passwords"に進む。この選択を preseed でやりたいんだけどうまくいかないな。カーネルパラメータに modules=sata-modules-3.2.0-4-486-di と入れてもうまくいかない。

sata-modules-3.2.0-4-486-di

パーティションのフォーマットで ext4 が選択できないので、インストーラコンポーネントを選択する。メモリ不足なら ext2 にしておいたほうがいいかも。

改めてDownload install componentsで以下を選択。/var/log/syslog を見ると依存関係で ext3-modules-3.2.0-4-486-di と ext4-modules-3.2.0-4-486-di もインストールされるみたい。

partman-ext3

ブートパラメータ modules=?, anna/choose_modules=?とかでもう少し自動化したいけど、うまくいかなかった。

もしくは netboot イメージ内に必要なモノ全部入れとくか?そうすればいちいち usb で swap を提供する必要も無くなるはずだ。netboot で ata モジュール無いよねーって話は見つかるけどどれも結構古い。wheezy では mx5 netboot image で {ata,mtd,pata,sata}-modules を入れたよってバグ修正が入ってた。同じトリックを i386 用にもできればいいってことかな。足りないモジュールをカーネルにぶっこめばいいじゃんっていう解決策も有るみたい。

# swapoff /dev/usb/swap0

途中までは結構早く進む。最初に長い時間止まるのは "Installing the base system" "78%" "selecting the kernel to install..."、デバッグコンソールで言えば "Setting up firmware-linux-nonfree (0.43) ..." で結構時間がかかる。alt+f4でログを見ると以下のメッセージで止まってる。hdd は動いている様子なのでとりあえずほっとく。

in-target: Setting up fiemware-linx-nonfree (0.43) ...

幾つかのパッケージをダウンロードしてインストールして以下のところで結構時間がかかっている様子。これが毎パッケージごとか数パッケージごとに起きているので時間がかかってる。1ステップに3-4 時間かかっている様子。インストールが終われば /var/log/installer/ にタイムスタンプ付きのログが出てくるので、後から確認。このメッセージの次のメッセージが表示されるまで大体2時間位かかってた。

in-target: Building dependency tree...

途中でハードディスクの空きが無くなってエラー終了。インストーラが終了するわけではないので、コンソールで以下のように空き領域増やす。"rm /target/var/cache/apt/archives/*.deb" は一貫性的にはあまり良くないかも。上に挙げたものずごく時間のかかる段階でAlt+F2のコンソールからこのコマンドを発行するのもあり。定期的にやっとけばエラー出さずに終了させることも可能。

# chroot /target/ apt-get clean

結局5日間位かかりました。同じようなことやったつもりだけど 2 日で終わる場合もある。なんだこれ。

インストールが済んだので、/var/log/installer/syslog からインストール時に選択したモジュール抜き出すと以下。依存関係でインストールされたモジュールもある。

$ grep retrieving /var/log/installer/syslog
May 13 15:19:28 anna[4557]: DEBUG: retrieving ext3-modules-3.2.0-4-486-di 3.2.65-1
May 13 15:19:29 anna[4557]: DEBUG: retrieving ext4-modules-3.2.0-4-486-di 3.2.65-1
May 13 15:19:30 anna[4557]: DEBUG: retrieving partman-ext3 74
May 15 13:59:39 anna[7178]: DEBUG: retrieving reiserfs-modules-3.2.0-4-486-di 3.2.65-1
May 15 13:59:41 anna[7284]: DEBUG: retrieving xfs-modules-3.2.0-4-486-di 3.2.65-1
May 15 13:59:44 anna[7388]: DEBUG: retrieving jfs-modules-3.2.0-4-486-di 3.2.65-1
May 15 13:59:51 anna[7642]: DEBUG: retrieving ntfs-modules-3.2.0-4-486-di 3.2.65-1
May 15 13:59:59 anna[7971]: DEBUG: retrieving qnx4-modules-3.2.0-4-486-di 3.2.65-1
May 15 14:00:02 anna[8075]: DEBUG: retrieving ufs-modules-3.2.0-4-486-di 3.2.65-1
May 15 14:00:04 anna[8179]: DEBUG: retrieving btrfs-modules-3.2.0-4-486-di 3.2.65-1
May 15 14:00:05 anna[8179]: DEBUG: retrieving zlib-modules-3.2.0-4-486-di 3.2.65-1
May 15 14:00:07 anna[8310]: DEBUG: retrieving fuse-modules-3.2.0-4-486-di 3.2.65-1

jessie netboot の場合

起動せずにカーネルパニック"Kernel panic - not syncing: Attempted to kill init exit code 0x00000200"。あとからシリアルケーブルつないで、カーネルの出力を保存したい。マニュアルにもそう書いてあるし、起動時にカーネルパラメータ渡す方針でちょっと試す。

$ sudo su
# mount -t ext4 /dev/sdz1 /mnt/sdz1/
# mkdir /mnt/sdz1/di
# cd /mnt/sdz1/di
# wget 'http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-i386/current/images/netboot/debian-installer/i386/linux'
Connecting to ftp.nl.debian.org (130.89.149.21:80)
linux                100% |***********|  2456k  0:00:00 ETA
# wget 'http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz'
Connecting to ftp.nl.debian.org (130.89.149.21:80)
initrd.gz            100% |***********| 10231k  0:00:00 ETA
# cat << EOT >> menu.list
title  di_wheezy_net
root   (hd0,msdos1)
kernel /di_wheezy/netboot/linux
initrd /di_wheezy/netboot//initrd.gz
EOT

debootstrapする場合

/dev/sdz1 を debootstrap するためのディレクトリにマウント

# mkdir /mnt/debinst
# mount /dev/sdz1 /mnt/debinst

debootstrap をダウンロードしてインストール

# cd /tmp/
# wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.67_all.deb
Connecting to ftp.debian.org (130.89.148.12:80)
debootstrap_1.0.67_a 100% |*************************************************************************************************************| 62742   0:00:00 ETA
# ar -x debootstrap_1.0.67_all.deb
# cd /
# zcat /tmp/data.tar.gz | tar xv
./
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/debootstrap/
./usr/share/doc/debootstrap/README
./usr/share/doc/debootstrap/changelog.gz
./usr/share/doc/debootstrap/copyright
./usr/share/man/
./usr/share/man/man8/
./usr/share/man/man8/debootstrap.8.gz
./usr/share/debootstrap/
./usr/share/debootstrap/functions
./usr/share/debootstrap/scripts/
./usr/share/debootstrap/scripts/hoary
./usr/share/debootstrap/scripts/woody.buildd
./usr/share/debootstrap/scripts/feisty
./usr/share/debootstrap/scripts/warty.buildd
./usr/share/debootstrap/scripts/potato
./usr/share/debootstrap/scripts/sarge.fakechroot
./usr/share/debootstrap/scripts/hoary.buildd
./usr/share/debootstrap/scripts/gutsy
./usr/share/debootstrap/scripts/warty
./usr/share/debootstrap/scripts/sarge
./usr/share/debootstrap/scripts/sid
./usr/share/debootstrap/scripts/sarge.buildd
./usr/share/debootstrap/scripts/edgy
./usr/share/debootstrap/scripts/dapper
./usr/share/debootstrap/scripts/breezy
./usr/share/debootstrap/scripts/woody
./usr/share/debootstrap/devices.tar.gz
./usr/sbin/
./usr/sbin/debootstrap
./usr/share/debootstrap/scripts/saucy
./usr/share/debootstrap/scripts/testing
./usr/share/debootstrap/scripts/unstable
./usr/share/debootstrap/scripts/oneiric
./usr/share/debootstrap/scripts/stretch
./usr/share/debootstrap/scripts/stable
./usr/share/debootstrap/scripts/etch-m68k
./usr/share/debootstrap/scripts/maverick
./usr/share/debootstrap/scripts/raring
./usr/share/debootstrap/scripts/lenny
./usr/share/debootstrap/scripts/hardy
./usr/share/debootstrap/scripts/wheezy
./usr/share/debootstrap/scripts/squeeze
./usr/share/debootstrap/scripts/etch
./usr/share/debootstrap/scripts/oldstable
./usr/share/debootstrap/scripts/precise
./usr/share/debootstrap/scripts/trusty
./usr/share/debootstrap/scripts/utopic
./usr/share/debootstrap/scripts/natty
./usr/share/debootstrap/scripts/jaunty
./usr/share/debootstrap/scripts/jessie
./usr/share/debootstrap/scripts/lucid
./usr/share/debootstrap/scripts/intrepid
./usr/share/debootstrap/scripts/quantal
./usr/share/debootstrap/scripts/karmic
./usr/share/debootstrap/scripts/vivid

perl がないと言われるのでインストール

# /usr/sbin/debootstrap --arch i386 jessie /mnt/debinst http://ftp.jp.debian.org/debian
E: No pkgdetails available; either install perl, or build pkgdetails.c from the base-installer source package
# tce-load -iw perl5.tcz
Don't run this as root.
# exit
tc@box:~$ tce-load -iw perl5.tcz
Downloading: perl5.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
perl5.tcz            100% |*************************************************************************************************************| 12892k  0:00:00 ETA
perl5.tcz: OK
$ perl -v

This is perl 5, version 20, subversion 0 (v5.20.0) built for i486-linux

Copyright 1987-2014, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

再度 su になって debootstrap を実行。

$ sudo su
# /usr/sbin/debootstrap --arch i386 jessie /mnt/debinst http://ftp.jp.debian.org/debian
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: acl adduser dmsetup insserv libaudit-common libaudit1 libbz2-1.0 libcap2 libcap2-bin libcryptsetup4 libdb5.3 libdebconfclient0 libdevmapper1.02.1 libgcrypt20 libgpg-error0 libkmod2 libncursesw5 libprocps3 libsemanage-common libsemanage1 libslang2 libsystemd0 libudev1 libustr-1.0-1 procps systemd systemd-sysv udev
I: Found additional base dependencies: libdns-export100 libffi6 libgmp10 libgnutls-deb0-28 libgnutls-openssl27 libhogweed2 libicu52 libidn11 libirs-export91 libisc-export95 libisccfg-export90 libmnl0 libnetfilter-acct1 libnettle4 libnfnetlink0 libp11-kit0 libpsl0 libtasn1-6
I: Checking component main on http://ftp.jp.debian.org/debian...
I: Retrieving acl 2.2.52-2
I: Validating acl 2.2.52-2
I: Retrieving libacl1 2.2.52-2
I: Validating libacl1 2.2.52-2
I: Retrieving adduser 3.113+nmu3
I: Validating adduser 3.113+nmu3
I: Retrieving apt 1.0.9.8
I: Validating apt 1.0.9.8
I: Retrieving apt-utils 1.0.9.8
I: Validating apt-utils 1.0.9.8
I: Retrieving libapt-inst1.5 1.0.9.8
I: Validating libapt-inst1.5 1.0.9.8
I: Retrieving libapt-pkg4.12 1.0.9.8
I: Validating libapt-pkg4.12 1.0.9.8
I: Retrieving libattr1 1:2.4.47-2
I: Validating libattr1 1:2.4.47-2
I: Retrieving libaudit-common 1:2.4-1
I: Validating libaudit-common 1:2.4-1
I: Retrieving libaudit1 1:2.4-1+b1
I: Validating libaudit1 1:2.4-1+b1
I: Retrieving base-files 8
I: Validating base-files 8
I: Retrieving base-passwd 3.5.37
I: Validating base-passwd 3.5.37
I: Retrieving bash 4.3-11+b1
I: Validating bash 4.3-11+b1
I: Retrieving libdns-export100 1:9.9.5.dfsg-9
I: Validating libdns-export100 1:9.9.5.dfsg-9
I: Retrieving libirs-export91 1:9.9.5.dfsg-9
I: Validating libirs-export91 1:9.9.5.dfsg-9
I: Retrieving libisc-export95 1:9.9.5.dfsg-9
I: Validating libisc-export95 1:9.9.5.dfsg-9
I: Retrieving libisccfg-export90 1:9.9.5.dfsg-9
I: Validating libisccfg-export90 1:9.9.5.dfsg-9
I: Retrieving libboost-iostreams1.55.0 1.55.0+dfsg-3
I: Validating libboost-iostreams1.55.0 1.55.0+dfsg-3
I: Retrieving bsdmainutils 9.0.6
I: Validating bsdmainutils 9.0.6
I: Retrieving libbz2-1.0 1.0.6-7+b3
I: Validating libbz2-1.0 1.0.6-7+b3
I: Retrieving libdebconfclient0 0.192
I: Validating libdebconfclient0 0.192
I: Retrieving coreutils 8.23-4
I: Validating coreutils 8.23-4
I: Retrieving cpio 2.11+dfsg-4.1
I: Validating cpio 2.11+dfsg-4.1
I: Retrieving cron 3.0pl1-127
I: Validating cron 3.0pl1-127
I: Retrieving libcryptsetup4 2:1.6.6-5
I: Validating libcryptsetup4 2:1.6.6-5
I: Retrieving dash 0.5.7-4+b1
I: Validating dash 0.5.7-4+b1
I: Retrieving libdb5.3 5.3.28-9
I: Validating libdb5.3 5.3.28-9
I: Retrieving debconf 1.5.56
I: Validating debconf 1.5.56
I: Retrieving debconf-i18n 1.5.56
I: Validating debconf-i18n 1.5.56
I: Retrieving debian-archive-keyring 2014.3
I: Validating debian-archive-keyring 2014.3
I: Retrieving debianutils 4.4+b1
I: Validating debianutils 4.4+b1
I: Retrieving diffutils 1:3.3-1+b1
I: Validating diffutils 1:3.3-1+b1
I: Retrieving dmidecode 2.12-3
I: Validating dmidecode 2.12-3
I: Retrieving dpkg 1.17.25
I: Validating dpkg 1.17.25
I: Retrieving e2fslibs 1.42.12-1.1
I: Validating e2fslibs 1.42.12-1.1
I: Retrieving e2fsprogs 1.42.12-1.1
I: Validating e2fsprogs 1.42.12-1.1
I: Retrieving libcomerr2 1.42.12-1.1
I: Validating libcomerr2 1.42.12-1.1
I: Retrieving libss2 1.42.12-1.1
I: Validating libss2 1.42.12-1.1
I: Retrieving findutils 4.4.2-9+b1
I: Validating findutils 4.4.2-9+b1
I: Retrieving gcc-4.8-base 4.8.4-1
I: Validating gcc-4.8-base 4.8.4-1
I: Retrieving gcc-4.9-base 4.9.2-10
I: Validating gcc-4.9-base 4.9.2-10
I: Retrieving libgcc1 1:4.9.2-10
I: Validating libgcc1 1:4.9.2-10
I: Retrieving libstdc++6 4.9.2-10
I: Validating libstdc++6 4.9.2-10
I: Retrieving libgdbm3 1.8.3-13.1
I: Validating libgdbm3 1.8.3-13.1
I: Retrieving libc-bin 2.19-18
I: Validating libc-bin 2.19-18
I: Retrieving libc6 2.19-18
I: Validating libc6 2.19-18
I: Retrieving multiarch-support 2.19-18
I: Validating multiarch-support 2.19-18
I: Retrieving libgmp10 2:6.0.0+dfsg-6
I: Validating libgmp10 2:6.0.0+dfsg-6
I: Retrieving gnupg 1.4.18-7
I: Validating gnupg 1.4.18-7
I: Retrieving gpgv 1.4.18-7
I: Validating gpgv 1.4.18-7
I: Retrieving libgnutls-deb0-28 3.3.8-6
I: Validating libgnutls-deb0-28 3.3.8-6
I: Retrieving libgnutls-openssl27 3.3.8-6
I: Validating libgnutls-openssl27 3.3.8-6
I: Retrieving grep 2.20-4.1
I: Validating grep 2.20-4.1
I: Retrieving groff-base 1.22.2-8
I: Validating groff-base 1.22.2-8
I: Retrieving gzip 1.6-4
I: Validating gzip 1.6-4
I: Retrieving hostname 3.15
I: Validating hostname 3.15
I: Retrieving libicu52 52.1-8
I: Validating libicu52 52.1-8
I: Retrieving ifupdown 0.7.53.1
I: Validating ifupdown 0.7.53.1
I: Retrieving init 1.22
I: Validating init 1.22
I: Retrieving init-system-helpers 1.22
I: Validating init-system-helpers 1.22
I: Retrieving insserv 1.14.0-5
I: Validating insserv 1.14.0-5
I: Retrieving iproute2 3.16.0-2
I: Validating iproute2 3.16.0-2
I: Retrieving iptables 1.4.21-2+b1
I: Validating iptables 1.4.21-2+b1
I: Retrieving libxtables10 1.4.21-2+b1
I: Validating libxtables10 1.4.21-2+b1
I: Retrieving iputils-ping 3:20121221-5+b2
I: Validating iputils-ping 3:20121221-5+b2
I: Retrieving isc-dhcp-client 4.3.1-6
I: Validating isc-dhcp-client 4.3.1-6
I: Retrieving isc-dhcp-common 4.3.1-6
I: Validating isc-dhcp-common 4.3.1-6
I: Retrieving libjson-c2 0.11-4
I: Validating libjson-c2 0.11-4
I: Retrieving kmod 18-3
I: Validating kmod 18-3
I: Retrieving libkmod2 18-3
I: Validating libkmod2 18-3
I: Retrieving less 458-3
I: Validating less 458-3
I: Retrieving libcap2 1:2.24-8
I: Validating libcap2 1:2.24-8
I: Retrieving libcap2-bin 1:2.24-8
I: Validating libcap2-bin 1:2.24-8
I: Retrieving libestr0 0.1.9-1.1
I: Validating libestr0 0.1.9-1.1
I: Retrieving libffi6 3.1-2+b2
I: Validating libffi6 3.1-2+b2
I: Retrieving libgcrypt20 1.6.3-2
I: Validating libgcrypt20 1.6.3-2
I: Retrieving libgpg-error0 1.17-3
I: Validating libgpg-error0 1.17-3
I: Retrieving libidn11 1.29-1+b2
I: Validating libidn11 1.29-1+b2
I: Retrieving liblocale-gettext-perl 1.05-8+b1
I: Validating liblocale-gettext-perl 1.05-8+b1
I: Retrieving liblogging-stdlog0 1.0.4-1
I: Validating liblogging-stdlog0 1.0.4-1
I: Retrieving liblognorm1 1.0.1-3
I: Validating liblognorm1 1.0.1-3
I: Retrieving libmnl0 1.0.3-5
I: Validating libmnl0 1.0.3-5
I: Retrieving libnetfilter-acct1 1.0.2-1.1
I: Validating libnetfilter-acct1 1.0.2-1.1
I: Retrieving libnfnetlink0 1.0.1-3
I: Validating libnfnetlink0 1.0.1-3
I: Retrieving libpipeline1 1.4.0-1
I: Validating libpipeline1 1.4.0-1
I: Retrieving libpsl0 0.5.1-1
I: Validating libpsl0 0.5.1-1
I: Retrieving libselinux1 2.3-2
I: Validating libselinux1 2.3-2
I: Retrieving libsemanage-common 2.3-1
I: Validating libsemanage-common 2.3-1
I: Retrieving libsemanage1 2.3-1+b1
I: Validating libsemanage1 2.3-1+b1
I: Retrieving libsepol1 2.3-2
I: Validating libsepol1 2.3-2
I: Retrieving libsigc++-2.0-0c2a 2.4.0-1
I: Validating libsigc++-2.0-0c2a 2.4.0-1
I: Retrieving libtasn1-6 4.2-3
I: Validating libtasn1-6 4.2-3
I: Retrieving libtext-charwidth-perl 0.04-7+b3
I: Validating libtext-charwidth-perl 0.04-7+b3
I: Retrieving libtext-iconv-perl 1.7-5+b2
I: Validating libtext-iconv-perl 1.7-5+b2
I: Retrieving libtext-wrapi18n-perl 0.06-7
I: Validating libtext-wrapi18n-perl 0.06-7
I: Retrieving libusb-0.1-4 2:0.1.12-25
I: Validating libusb-0.1-4 2:0.1.12-25
I: Retrieving logrotate 3.8.7-1+b1
I: Validating logrotate 3.8.7-1+b1
I: Retrieving lsb-base 4.1+Debian13+nmu1
I: Validating lsb-base 4.1+Debian13+nmu1
I: Retrieving dmsetup 2:1.02.90-2.2
I: Validating dmsetup 2:1.02.90-2.2
I: Retrieving libdevmapper1.02.1 2:1.02.90-2.2
I: Validating libdevmapper1.02.1 2:1.02.90-2.2
I: Retrieving man-db 2.7.0.2-5
I: Validating man-db 2.7.0.2-5
I: Retrieving manpages 3.74-1
I: Validating manpages 3.74-1
I: Retrieving mawk 1.3.3-17
I: Validating mawk 1.3.3-17
I: Retrieving nano 2.2.6-3
I: Validating nano 2.2.6-3
I: Retrieving libncurses5 5.9+20140913-1+b1
I: Validating libncurses5 5.9+20140913-1+b1
I: Retrieving libncursesw5 5.9+20140913-1+b1
I: Validating libncursesw5 5.9+20140913-1+b1
I: Retrieving libtinfo5 5.9+20140913-1+b1
I: Validating libtinfo5 5.9+20140913-1+b1
I: Retrieving ncurses-base 5.9+20140913-1
I: Validating ncurses-base 5.9+20140913-1
I: Retrieving ncurses-bin 5.9+20140913-1+b1
I: Validating ncurses-bin 5.9+20140913-1+b1
I: Retrieving net-tools 1.60-26+b1
I: Validating net-tools 1.60-26+b1
I: Retrieving netbase 5.3
I: Validating netbase 5.3
I: Retrieving netcat-traditional 1.10-41
I: Validating netcat-traditional 1.10-41
I: Retrieving libhogweed2 2.7.1-5
I: Validating libhogweed2 2.7.1-5
I: Retrieving libnettle4 2.7.1-5
I: Validating libnettle4 2.7.1-5
I: Retrieving libnewt0.52 0.52.17-1+b1
I: Validating libnewt0.52 0.52.17-1+b1
I: Retrieving whiptail 0.52.17-1+b1
I: Validating whiptail 0.52.17-1+b1
I: Retrieving nfacct 1.0.1-1.1
I: Validating nfacct 1.0.1-1.1
I: Retrieving libssl1.0.0 1.0.1k-3
I: Validating libssl1.0.0 1.0.1k-3
I: Retrieving libp11-kit0 0.20.7-1
I: Validating libp11-kit0 0.20.7-1
I: Retrieving libpam-modules 1.1.8-3.1
I: Validating libpam-modules 1.1.8-3.1
I: Retrieving libpam-modules-bin 1.1.8-3.1
I: Validating libpam-modules-bin 1.1.8-3.1
I: Retrieving libpam-runtime 1.1.8-3.1
I: Validating libpam-runtime 1.1.8-3.1
I: Retrieving libpam0g 1.1.8-3.1
I: Validating libpam0g 1.1.8-3.1
I: Retrieving libpcre3 2:8.35-3.3
I: Validating libpcre3 2:8.35-3.3
I: Retrieving perl-base 5.20.2-3
I: Validating perl-base 5.20.2-3
I: Retrieving libpopt0 1.16-10
I: Validating libpopt0 1.16-10
I: Retrieving libprocps3 2:3.3.9-9
I: Validating libprocps3 2:3.3.9-9
I: Retrieving procps 2:3.3.9-9
I: Validating procps 2:3.3.9-9
I: Retrieving libreadline6 6.3-8+b3
I: Validating libreadline6 6.3-8+b3
I: Retrieving readline-common 6.3-8
I: Validating readline-common 6.3-8
I: Retrieving rsyslog 8.4.2-1
I: Validating rsyslog 8.4.2-1
I: Retrieving sed 4.2.2-4+b1
I: Validating sed 4.2.2-4+b1
I: Retrieving sensible-utils 0.0.9
I: Validating sensible-utils 0.0.9
I: Retrieving login 1:4.2-3
I: Validating login 1:4.2-3
I: Retrieving passwd 1:4.2-3
I: Validating passwd 1:4.2-3
I: Retrieving libslang2 2.3.0-2
I: Validating libslang2 2.3.0-2
I: Retrieving startpar 0.59-3
I: Validating startpar 0.59-3
I: Retrieving libsystemd0 215-17
I: Validating libsystemd0 215-17
I: Retrieving libudev1 215-17
I: Validating libudev1 215-17
I: Retrieving systemd 215-17
I: Validating systemd 215-17
I: Retrieving systemd-sysv 215-17
I: Validating systemd-sysv 215-17
I: Retrieving udev 215-17
I: Validating udev 215-17
I: Retrieving initscripts 2.88dsf-59
I: Validating initscripts 2.88dsf-59
I: Retrieving sysv-rc 2.88dsf-59
I: Validating sysv-rc 2.88dsf-59
I: Retrieving sysvinit-utils 2.88dsf-59
I: Validating sysvinit-utils 2.88dsf-59
I: Retrieving tar 1.27.1-2+b1
I: Validating tar 1.27.1-2+b1
I: Retrieving tasksel 3.31
I: Validating tasksel 3.31
I: Retrieving tasksel-data 3.31
I: Validating tasksel-data 3.31
I: Retrieving traceroute 1:2.0.20-2+b1
I: Validating traceroute 1:2.0.20-2+b1
I: Retrieving tzdata 2015c-1
I: Validating tzdata 2015c-1
I: Retrieving libustr-1.0-1 1.0.4-3+b2
I: Validating libustr-1.0-1 1.0.4-3+b2
I: Retrieving bsdutils 1:2.25.2-6
I: Validating bsdutils 1:2.25.2-6
I: Retrieving libblkid1 2.25.2-6
I: Validating libblkid1 2.25.2-6
I: Retrieving libmount1 2.25.2-6
I: Validating libmount1 2.25.2-6
I: Retrieving libsmartcols1 2.25.2-6
I: Validating libsmartcols1 2.25.2-6
I: Retrieving libuuid1 2.25.2-6
I: Validating libuuid1 2.25.2-6
I: Retrieving mount 2.25.2-6
I: Validating mount 2.25.2-6
I: Retrieving util-linux 2.25.2-6
I: Validating util-linux 2.25.2-6
I: Retrieving vim-common 2:7.4.488-7
I: Validating vim-common 2:7.4.488-7
I: Retrieving vim-tiny 2:7.4.488-7
I: Validating vim-tiny 2:7.4.488-7
I: Retrieving wget 1.16-1
I: Validating wget 1.16-1
I: Retrieving liblzma5 5.1.1alpha+20120614-2+b3
I: Validating liblzma5 5.1.1alpha+20120614-2+b3
I: Retrieving zlib1g 1:1.2.8.dfsg-2+b1
I: Validating zlib1g 1:1.2.8.dfsg-2+b1
I: Chosen extractor for .deb packages: ar
I: Extracting acl...
I: Extracting libacl1...
I: Extracting adduser...
I: Extracting libattr1...
I: Extracting libaudit-common...
I: Extracting libaudit1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting libbz2-1.0...
I: Extracting libdebconfclient0...
I: Extracting coreutils...
I: Extracting libcryptsetup4...
I: Extracting dash...
I: Extracting libdb5.3...
I: Extracting debconf...
I: Extracting debconf-i18n...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting libcomerr2...
I: Extracting libss2...
I: Extracting findutils...
I: Extracting gcc-4.8-base...
I: Extracting gcc-4.9-base...
I: Extracting libgcc1...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting multiarch-support...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting init...
I: Extracting insserv...
I: Extracting libkmod2...
I: Extracting libcap2...
I: Extracting libcap2-bin...
I: Extracting libgcrypt20...
I: Extracting libgpg-error0...
I: Extracting liblocale-gettext-perl...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting libtext-charwidth-perl...
I: Extracting libtext-iconv-perl...
I: Extracting libtext-wrapi18n-perl...
I: Extracting lsb-base...
I: Extracting dmsetup...
I: Extracting libdevmapper1.02.1...
I: Extracting mawk...
I: Extracting libncurses5...
I: Extracting libncursesw5...
I: Extracting libtinfo5...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libpcre3...
I: Extracting perl-base...
I: Extracting libprocps3...
I: Extracting procps...
I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting login...
I: Extracting passwd...
I: Extracting libslang2...
I: Extracting startpar...
I: Extracting libsystemd0...
I: Extracting libudev1...
I: Extracting systemd...
I: Extracting systemd-sysv...
I: Extracting udev...
I: Extracting initscripts...
I: Extracting sysv-rc...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting libustr-1.0-1...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libmount1...
I: Extracting libsmartcols1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma5...
I: Extracting zlib1g...
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking acl...
I: Unpacking libacl1:i386...
I: Unpacking adduser...
I: Unpacking libattr1:i386...
I: Unpacking libaudit-common...
I: Unpacking libaudit1:i386...
I: Unpacking base-files...
I: Unpacking base-passwd...
I: Unpacking bash...
I: Unpacking libbz2-1.0:i386...
I: Unpacking libdebconfclient0:i386...
I: Unpacking coreutils...
I: Unpacking libcryptsetup4:i386...
I: Unpacking dash...
I: Unpacking libdb5.3:i386...
I: Unpacking debconf...
I: Unpacking debconf-i18n...
I: Unpacking debianutils...
I: Unpacking diffutils...
I: Unpacking dpkg...
I: Unpacking e2fslibs:i386...
I: Unpacking e2fsprogs...
I: Unpacking libcomerr2:i386...
I: Unpacking libss2:i386...
I: Unpacking findutils...
I: Unpacking gcc-4.8-base:i386...
I: Unpacking gcc-4.9-base:i386...
I: Unpacking libgcc1:i386...
I: Unpacking libc-bin...
I: Unpacking libc6:i386...
I: Unpacking multiarch-support...
I: Unpacking grep...
I: Unpacking gzip...
I: Unpacking hostname...
I: Unpacking init...
I: Unpacking insserv...
I: Unpacking libkmod2:i386...
I: Unpacking libcap2:i386...
I: Unpacking libcap2-bin...
I: Unpacking libgcrypt20:i386...
I: Unpacking libgpg-error0:i386...
I: Unpacking liblocale-gettext-perl...
I: Unpacking libselinux1:i386...
I: Unpacking libsemanage-common...
I: Unpacking libsemanage1:i386...
I: Unpacking libsepol1:i386...
I: Unpacking libtext-charwidth-perl...
I: Unpacking libtext-iconv-perl...
I: Unpacking libtext-wrapi18n-perl...
I: Unpacking lsb-base...
I: Unpacking dmsetup...
I: Unpacking libdevmapper1.02.1:i386...
I: Unpacking mawk...
I: Unpacking libncurses5:i386...
I: Unpacking libncursesw5:i386...
I: Unpacking libtinfo5:i386...
I: Unpacking ncurses-base...
I: Unpacking ncurses-bin...
I: Unpacking libpam-modules:i386...
I: Unpacking libpam-modules-bin...
I: Unpacking libpam-runtime...
I: Unpacking libpam0g:i386...
I: Unpacking libpcre3:i386...
I: Unpacking perl-base...
I: Unpacking libprocps3:i386...
I: Unpacking procps...
I: Unpacking sed...
I: Unpacking sensible-utils...
I: Unpacking login...
I: Unpacking passwd...
I: Unpacking libslang2:i386...
I: Unpacking startpar...
I: Unpacking libsystemd0:i386...
I: Unpacking libudev1:i386...
I: Unpacking systemd...
I: Unpacking systemd-sysv...
I: Unpacking udev...
I: Unpacking initscripts...
I: Unpacking sysv-rc...
I: Unpacking sysvinit-utils...
I: Unpacking tar...
I: Unpacking tzdata...
I: Unpacking libustr-1.0-1:i386...
I: Unpacking bsdutils...
I: Unpacking libblkid1:i386...
I: Unpacking libmount1:i386...
I: Unpacking libsmartcols1:i386...
I: Unpacking libuuid1:i386...
I: Unpacking mount...
I: Unpacking util-linux...
I: Unpacking liblzma5:i386...
I: Unpacking zlib1g:i386...
I: Configuring required packages...
I: Configuring gcc-4.8-base:i386...
I: Configuring lsb-base...
I: Configuring sensible-utils...
I: Configuring ncurses-base...
I: Configuring libsemanage-common...
I: Configuring gcc-4.9-base:i386...
I: Configuring libaudit-common...
I: Configuring libc6:i386...
I: Configuring startpar...
I: Configuring diffutils...
I: Configuring insserv...
I: Configuring findutils...
I: Configuring debianutils...
I: Configuring hostname...
I: Configuring multiarch-support...
I: Configuring mawk...
I: Configuring libprocps3:i386...
I: Configuring libpcre3:i386...
I: Configuring libbz2-1.0:i386...
I: Configuring libkmod2:i386...
I: Configuring libgpg-error0:i386...
I: Configuring base-files...
I: Configuring libdebconfclient0:i386...
I: Configuring libselinux1:i386...
I: Configuring libcomerr2:i386...
I: Configuring libslang2:i386...
I: Configuring libsepol1:i386...
I: Configuring libgcc1:i386...
I: Configuring libustr-1.0-1:i386...
I: Configuring libsmartcols1:i386...
I: Configuring libaudit1:i386...
I: Configuring libtinfo5:i386...
I: Configuring libudev1:i386...
I: Configuring libattr1:i386...
I: Configuring libss2:i386...
I: Configuring liblzma5:i386...
I: Configuring base-passwd...
I: Configuring e2fslibs:i386...
I: Configuring libgcrypt20:i386...
I: Configuring libncursesw5:i386...
I: Configuring libdb5.3:i386...
I: Configuring zlib1g:i386...
I: Configuring libcap2:i386...
I: Configuring libsystemd0:i386...
I: Configuring libdevmapper1.02.1:i386...
I: Configuring libc-bin...
I: Configuring libsemanage1:i386...
I: Configuring sysvinit-utils...
I: Configuring libacl1:i386...
I: Configuring ncurses-bin...
I: Configuring acl...
I: Configuring libncurses5:i386...
I: Configuring libcap2-bin...
I: Configuring bsdutils...
I: Configuring coreutils...
I: Configuring tar...
I: Configuring dpkg...
I: Configuring sed...
I: Configuring perl-base...
I: Configuring grep...
I: Configuring debconf...
I: Configuring tzdata...
I: Configuring gzip...
I: Configuring dash...
I: Configuring libtext-iconv-perl...
I: Configuring sysv-rc...
I: Configuring liblocale-gettext-perl...
I: Configuring libtext-charwidth-perl...
I: Configuring libpam0g:i386...
I: Configuring libpam-modules-bin...
I: Configuring bash...
I: Configuring libtext-wrapi18n-perl...
I: Configuring libpam-modules:i386...
I: Configuring libpam-runtime...
I: Configuring debconf-i18n...
I: Configuring passwd...
I: Configuring login...
I: Configuring adduser...
I: Configuring libuuid1:i386...
I: Configuring libblkid1:i386...
I: Configuring libmount1:i386...
I: Configuring libcryptsetup4:i386...
I: Configuring mount...
I: Configuring initscripts...
I: Configuring util-linux...
I: Configuring e2fsprogs...
I: Configuring procps...
I: Configuring udev...
I: Configuring systemd...
I: Configuring dmsetup...
I: Configuring systemd-sysv...
I: Configuring init...
I: Configuring libc-bin...
I: Unpacking the base system...
I: Unpacking apt...
I: Unpacking apt-utils...
I: Unpacking libapt-inst1.5:i386...
I: Unpacking libapt-pkg4.12:i386...
I: Unpacking libdns-export100...
I: Unpacking libirs-export91...
I: Unpacking libisc-export95...
I: Unpacking libisccfg-export90...
I: Unpacking libboost-iostreams1.55.0:i386...
I: Unpacking bsdmainutils...
I: Unpacking cpio...
I: Unpacking cron...
I: Unpacking debian-archive-keyring...
I: Unpacking dmidecode...
I: Unpacking libstdc++6:i386...
I: Unpacking libgdbm3:i386...
I: Unpacking libgmp10:i386...
I: Unpacking gnupg...
I: Unpacking gpgv...
I: Unpacking libgnutls-deb0-28:i386...
I: Unpacking libgnutls-openssl27:i386...
I: Unpacking groff-base...
I: Unpacking libicu52:i386...
I: Unpacking ifupdown...
I: Unpacking init-system-helpers...
I: Unpacking iproute2...
I: Unpacking iptables...
I: Unpacking libxtables10...
I: Unpacking iputils-ping...
I: Unpacking isc-dhcp-client...
I: Unpacking isc-dhcp-common...
I: Unpacking libjson-c2:i386...
I: Unpacking kmod...
I: Unpacking less...
I: Unpacking libestr0...
I: Unpacking libffi6:i386...
I: Unpacking libidn11:i386...
I: Unpacking liblogging-stdlog0:i386...
I: Unpacking liblognorm1:i386...
I: Unpacking libmnl0:i386...
I: Unpacking libnetfilter-acct1:i386...
I: Unpacking libnfnetlink0:i386...
I: Unpacking libpipeline1:i386...
I: Unpacking libpsl0:i386...
I: Unpacking libsigc++-2.0-0c2a:i386...
I: Unpacking libtasn1-6:i386...
I: Unpacking libusb-0.1-4:i386...
I: Unpacking logrotate...
I: Unpacking man-db...
I: Unpacking manpages...
I: Unpacking nano...
I: Unpacking net-tools...
I: Unpacking netbase...
I: Unpacking netcat-traditional...
I: Unpacking libhogweed2:i386...
I: Unpacking libnettle4:i386...
I: Unpacking libnewt0.52:i386...
I: Unpacking whiptail...
I: Unpacking nfacct...
I: Unpacking libssl1.0.0:i386...
I: Unpacking libp11-kit0:i386...
I: Unpacking libpopt0:i386...
I: Unpacking libreadline6:i386...
I: Unpacking readline-common...
I: Unpacking rsyslog...
I: Unpacking tasksel...
I: Unpacking tasksel-data...
I: Unpacking traceroute...
I: Unpacking vim-common...
I: Unpacking vim-tiny...
I: Unpacking wget...
I: Configuring the base system...
I: Configuring readline-common...
I: Configuring libgdbm3:i386...
I: Configuring manpages...
I: Configuring libxtables10...
I: Configuring cpio...
I: Configuring libpopt0:i386...
I: Configuring kmod...
I: Configuring libestr0...
I: Configuring less...
I: Configuring libssl1.0.0:i386...
I: Configuring dmidecode...
I: Configuring gpgv...
I: Configuring liblogging-stdlog0:i386...
I: Configuring netcat-traditional...
I: Configuring libpipeline1:i386...
I: Configuring iproute2...
I: Configuring libtasn1-6:i386...
I: Configuring nano...
I: Configuring libgmp10:i386...
I: Configuring libisc-export95...
I: Configuring init-system-helpers...
I: Configuring libnettle4:i386...
I: Configuring debian-archive-keyring...
I: Configuring vim-common...
I: Configuring libnfnetlink0:i386...
I: Configuring libstdc++6:i386...
I: Configuring libffi6:i386...
I: Configuring libnewt0.52:i386...
I: Configuring bsdmainutils...
I: Configuring net-tools...
I: Configuring cron...
I: Configuring libmnl0:i386...
I: Configuring libapt-pkg4.12:i386...
I: Configuring libusb-0.1-4:i386...
I: Configuring traceroute...
I: Configuring logrotate...
I: Configuring libidn11:i386...
I: Configuring libreadline6:i386...
I: Configuring libjson-c2:i386...
I: Configuring libicu52:i386...
I: Configuring netbase...
I: Configuring vim-tiny...
I: Configuring libhogweed2:i386...
I: Configuring ifupdown...
I: Configuring libisccfg-export90...
I: Configuring libsigc++-2.0-0c2a:i386...
I: Configuring groff-base...
I: Configuring liblognorm1:i386...
I: Configuring whiptail...
I: Configuring gnupg...
I: Configuring libpsl0:i386...
I: Configuring libboost-iostreams1.55.0:i386...
I: Configuring libdns-export100...
I: Configuring iptables...
I: Configuring libapt-inst1.5:i386...
I: Configuring libp11-kit0:i386...
I: Configuring libgnutls-deb0-28:i386...
I: Configuring wget...
I: Configuring apt...
I: Configuring man-db...
I: Configuring libnetfilter-acct1:i386...
I: Configuring rsyslog...
I: Configuring nfacct...
I: Configuring apt-utils...
I: Configuring libirs-export91...
I: Configuring libgnutls-openssl27:i386...
I: Configuring iputils-ping...
I: Configuring isc-dhcp-common...
I: Configuring isc-dhcp-client...
I: Configuring tasksel...
I: Configuring tasksel-data...
I: Configuring libc-bin...
I: Configuring systemd...
I: Base system installed successfully.
# mount -t proc proc /mnt/debinst/proc
# mount -o bind /dev /mnt/debinst/dev
# LANG=C chroot /mnt/debinst /bin/bash
# cat /etc/fstab
# file system   mount point     type    options         dump    pass
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext4    defaults        0       1
/dev/sda3       none            swap    sw              0       0
# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

## The loopback network interface
auto lo
iface lo inet loopback

## The primary network interface (eth0)
auto eth0

# DHCP
iface eth0 inet dhcp

# Static IP
#iface eth0 inet static
#       address 192.168.0.1
#       netmask 255.255.255.0
#       broadcast 192.168.0.255
#       gateway 192.168.0.254
# apt-get install debian-keyring
# apt-get install debian-archive-keyring


リファレンス

  1. Index of /tinycorelinux/6.x/x86/tcz/
  2. 5.4. インストールプロセスのトラブルシューティング
  3. 6.1. インストーラの動作
  4. 5.3. ブートパラメータ
  5. Debian Installer internals
  6. hard drive - Debian missing firmware with PXE installation - Stack Overflow
  7. Bug#737750: debian-installer: Netboot initrd does not download ata-modules or sata-modules udebs
  8. Making Debian 6.x play nice... | debian | cobbler | linux | Dmytro Kovalov
  9. Debian User Forums • View topic - Debian PXE "no disk drive was found..."
  10. [PATCH installer 1/2] Include {ata,mtd,pata,sata}-modules in mx5 netboot image (Closes: #675017)
  11. Backported d-i images
  12. 鈴木の格安パソコンライフBBS
  13. Debian -- Software Packages in "wheezy", Subsection debian-installer
  14. "debian-installer" initramfs|initrd module - Google 検索
  15. "debian-installer" netboot module - Google 検索
  16. Debian Squeeze PXE Netboot For VirtualBox | Embedded Systems Developer Notes
  17. Linux Administration: Injecting kernel modules in initrd.gz for the Debian Installer
  18. "debian-installer" initramfs|initrd custom - Google 検索
  19. DebianInstaller/NetbootFirmware - Debian Wiki

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2008-07-02T11:47:58+09:00
  2. Modified: 2008-07-02T11:47:58+09:00
  3. Generated: 2017-04-20T23:09:16+09:00