Squeeze のインストール(1)debootstrap

Debian LS-VL

LS-VL に次期 Debian である Squeeze をインストールしてみる。

ar と wget

まずは、ar と wget が標準ファームにあるか 確認する。
root@LS-VL815:~# ar
-sh: ar: command not found
root@LS-VL815:~# wget
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
ar がない。

TS-WXLと同じように、busybox を見る。

root@LS-VL815:~# /bin/busybox --help
BusyBox v1.7.0 (2009-04-29 19:12:57 JST) multi-call binary
Copyright (C) 1998-2006  妥rik Andersen, Rob Landley, and others.
Licensed under GPLv2.  帯ee source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: [function] [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as!

Currently defined functions:
        [, [[, addgroup, adduser, adjtimex, ar, arp, arping, ash,
        awk, basename, bunzip2, bzcat, cal, cat, catv, chattr,
        chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt,
        cksum, clear, cmp, comm, cp, cpio, crond, crontab, cryptpw,
        cut, date, dc, dd, deallocvt, delgroup, deluser, df, dhcprelay,
        diff, dirname, dmesg, dnsd, dos2unix, du, dumpkmap, dumpleases,
        echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake,
        expand, expr, fakeidentd, false, fbset, fdflush, fdformat,
        fdisk, fgrep, find, fold, free, freeramdisk, fsck, fsck.minix,
        ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip,
        halt, hdparm, head, hexdump, hostid, hostname, httpd,
        hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
        install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute,
        iprule, iptunnel, kill, killall, killall5, klogd, last,
        length, less, linux32, linux64, linuxrc, ln, loadfont,
        loadkmap, logger, login, logname, logread, losetup, ls,
        lsattr, lsmod, lzmacat, makedevs, md5sum, mdev, mesg,
        mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe,
        more, mount, mountpoint, mt, mv, nameif, nc, netstat,
        nice, nmeter, nohup, nslookup, od, openvt, passwd, patch,
        pidof, ping, ping6, pipe_progress, pivot_root, poweroff,
        printenv, printf, ps, pscan, pwd, raidautorun, rdate,
        readahead, readlink, readprofile, realpath, reboot, renice,
        reset, resize, rm, rmdir, rmmod, route, rpm, rpm2cpio,
        run-parts, runlevel, runsv, runsvdir, rx, sed, seq, setarch,
        setconsole, setkeycodes, setlogcons, setsid, setuidgid,
        sh, sha1sum, slattach, sleep, softlimit, sort, split,
        start-stop-daemon, stat, strings, stty, su, sulogin, sum,
        sv, svlogd, swapoff, swapon, switch_root, sync, sysctl,
        syslogd, tail, tar, taskset, tcpsvd, tee, telnet, test,
        tftp, time, top, touch, tr, traceroute, true, tty, ttysize,
        udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand,
        uniq, unix2dos, unlzma, unzip, uptime, usleep, uudecode,
        uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget,
        which, who, whoami, xargs, yes, zcat, zcip

busybox 自体は、ar が使えるようにコンフィギュレーションされているが、 ar というファイルにシンボリックリンクが張ってないので ar が使えないだけ。


root@LS-VL815:~# ln -s /bin/busybox  /usr/local/bin/ar
root@LS-VL815:~# which ar
root@LS-VL815:~# ar
BusyBox v1.7.0 (2009-04-29 19:12:57 JST) multi-call binary

Usage: ar [-o] [-v] [-p] [-t] [-x] ARCHIVE FILES

Extract or list FILES from an ar archive

        -o      Preserve original dates
        -p      Extract to stdout
        -t      List
        -x      Extract
        -v      Verbose


debootstrap の取得

ここからは、 今度こそ debootstrapに準じて

wget で debootstrap_1.0.26_all.deb 取得する。

root@LS-VL815:~# mkdir /mnt/disk1/debootstrap
root@LS-VL815:~# cd !$
cd /mnt/disk1/debootstrap
root@LS-VL815:/mnt/disk1/debootstrap# wget http://ftp.jp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26_all.deb
--2010-12-23 00:06:55--  http://ftp.jp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26_all.deb
Resolving ftp.jp.debian.org...
Connecting to ftp.jp.debian.org||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58232 (57K) [application/x-debian-package]
Saving to: `debootstrap_1.0.26_all.deb'

100%[======================================>] 58,232      --.-K/s   in 0.08s

2010-12-23 00:06:55 (694 KB/s) - `debootstrap_1.0.26_all.deb' saved [58232/58232]


debootstrap の展開

root@LS-VL815:/mnt/disk1/debootstrap# ar -xv debootstrap_1.0.26_all.deb
rw-r--r-- 0/0      4 Nov 12 21:07 2010 debian-binary
rw-r--r-- 0/0   1171 Nov 12 21:07 2010 control.tar.gz
rw-r--r-- 0/0  56868 Nov 12 21:07 2010 data.tar.gz

debootstrap のインストール

root@LS-VL815:/mnt/disk1/debootstrap# pwd
root@LS-VL815:/mnt/disk1/debootstrap# cd /
root@LS-VL815:/# tar zxvf /mnt/disk1/debootstrap/data.tar.gz

debootstrap の実行

root@LS-VL815:/# date; usr/sbin/debootstrap --arch armel squeeze /mnt/disk1/debinst http://ftp.jp.debian.org/debian ; date
Thu Dec 23 00:14:34 JST 2010
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Configuring tasksel-data...
I: Configuring tasksel...
I: Base system installed successfully.
Thu Dec 23 00:24:45 JST 2010
LS-VL だと、10分ほどで終わった。


root@LS-VL815:~# ls
root@LS-VL815:~# cd /mnt/disk1/debinst/
root@LS-VL815:/mnt/disk1/debinst# tar zcvf /mnt/disk1/share/hackkit/hackkit_101223.tar.gz .




LinkStation/玄箱 をハックしよう

Squeeze のインストール(2)インストーラの修正

Copyright (C) 2003-2011 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市