できあがった中途半端な debian のツリーは、tar でまとめておいた。
そうすれば、なんどもなんども
HD-HGLAN につないで debootstrap を実行する必要がなくなるので。
root@UDE:~# mount /dev/sdb2 /mnt/debinst/ root@UDE:~#
root@UDE:~# chroot /mnt/debinst/ sh-2.05b#
試行錯誤の結果、先日とは違うやり方だが、 あらかじめ、wget_1.9.1-12_arm.deb、binutils_2.15-6_arm.deb を 取得しておいてインストールすることにした。
sh-2.05b# dpkg -i wget_1.9.1-12_arm.deb Selecting previously deselected package wget. (Reading database ... 0 files and directories currently installed.) Unpacking wget (from wget_1.9.1-12_arm.deb) ... dpkg: dependency problems prevent configuration of wget: wget depends on libc6 (>= 2.3.2.ds1-21); however: Package libc6 is not installed. wget depends on libssl0.9.7; however: Package libssl0.9.7 is not installed. dpkg: error processing wget (--install): dependency problems - leaving unconfigured Errors were encountered while processing: wget sh-2.05b# dpkg -i binutils_2.15-6_arm.deb Selecting previously deselected package binutils. (Reading database ... 109 files and directories currently installed.) Unpacking binutils (from binutils_2.15-6_arm.deb) ... dpkg: dependency problems prevent configuration of binutils: binutils depends on libc6 (>= 2.3.2.ds1-21); however: Package libc6 is not installed. dpkg: error processing binutils (--install): dependency problems - leaving unconfigured Errors were encountered while processing: binutils sh-2.05b#と、インストールエラーになるが、
sh-2.05b# which wget
/usr/bin/wget
sh-2.05b# which ar
/usr/bin/ar
sh-2.05b# wget
wget: error while loading shared libraries: libssl.so.0.9.7: cannot open shared object file: No such file or directory
sh-2.05b# ar
Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...
       ar -M [mri-script]
 commands:
  d            - delete file(s) from the archive
  m[ab]        - move file(s) in the archive
  p            - print file(s) found in the archive
  q[f]         - quick append file(s) to the archive
  r[ab][f][u]  - replace existing or insert new file(s) into the archive
  t            - display contents of archive
  x[o]         - extract file(s) from the archive
 command specific modifiers:
  [a]          - put file(s) after [member-name]
  [b]          - put file(s) before [member-name] (same as [i])
  [N]          - use instance [count] of name
  [f]          - truncate inserted file names
  [P]          - use full path names when matching
  [o]          - preserve original dates
  [u]          - only replace files that are newer than current archive contents
 generic modifiers:
  [c]          - do not warn if the library had to be created
  [s]          - create an archive index (cf. ranlib)
  [S]          - do not build a symbol table
  [v]          - be verbose
  [V]          - display the version number
 emulation options:
  No emulation specific options
ar: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big srec symbolsrec tekhex binary ihex
sh-2.05b#
動くようだ。
sh-2.05b# tar zxvf tmp/data.tar.gz ./ ./usr/ ./usr/sbin/ ./usr/sbin/debootstrap ./usr/share/ ./usr/share/man/ ./usr/share/man/man8/ ./usr/share/man/man8/debootstrap.8.gz ./usr/share/doc/ ./usr/share/doc/debootstrap/ ./usr/share/doc/debootstrap/README.Debian ./usr/share/doc/debootstrap/copyright ./usr/share/doc/debootstrap/changelog.Debian.gz ./usr/lib/ ./usr/lib/debootstrap/ ./usr/lib/debootstrap/scripts/ ./usr/lib/debootstrap/scripts/slink ./usr/lib/debootstrap/scripts/potato ./usr/lib/debootstrap/scripts/woody ./usr/lib/debootstrap/scripts/sarge ./usr/lib/debootstrap/scripts/sid ./usr/lib/debootstrap/scripts/woody.buildd ./usr/lib/debootstrap/scripts/sarge.buildd ./usr/lib/debootstrap/scripts/sid.buildd ./usr/lib/debootstrap/functions ./usr/lib/debootstrap/pkgdetails ./usr/lib/debootstrap/devices.tar.gz ./usr/lib/debootstrap/arch sh-2.05b#debootstrap を実行する。
sh-2.05b# /usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://http.us.debian.org/debian I: Retrieving debootstrap.invalid_dists_sarge_Release wget: error while loading shared libraries: libssl.so.0.9.7: cannot open shared object file: No such file or directory E: Failed getting release file http://http.us.debian.org/debian/dists/sarge/Releaseまだ試行錯誤が必要
/var/cache/apt/archives に libssl0.9.7_0.9.7e-3sarge1_arm.deb が あったので、インストール
sh-2.05b# dpkg -i libssl0.9.7_0.9.7e-3sarge1_arm.deb Selecting previously deselected package libssl0.9.7. (Reading database ... 226 files and directories currently installed.) Unpacking libssl0.9.7 (from libssl0.9.7_0.9.7e-3sarge1_arm.deb) ... dpkg: dependency problems prevent configuration of libssl0.9.7: libssl0.9.7 depends on libc6 (>= 2.3.2.ds1-21); however: Package libc6 is not installed. libssl0.9.7 depends on debconf (>= 0.5) | debconf-2.0; however: Package debconf is not installed. Package debconf-2.0 is not installed. dpkg: error processing libssl0.9.7 (--install): dependency problems - leaving unconfigured Errors were encountered while processing: libssl0.9.7 sh-2.05b#エラーは無視。
再実行
sh-2.05b# /usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://http.us.debian.org/debian I: Retrieving debootstrap.invalid_dists_sarge_Release I: Validating debootstrap.invalid_dists_sarge_Release I: Retrieving debootstrap.invalid_dists_sarge_main_binary-arm_Packages I: Validating debootstrap.invalid_dists_sarge_main_binary-arm_Packages I: Checking adduser... I: Checking apt... : Setting up base-config (2.53.10.2) ... I: Base system installed successfully. umount: /mnt/debinst/dev/pts: not mounted umount: /mnt/debinst/dev/shm: not mounted umount: /mnt/debinst/proc/bus/usb: not mounted sh-2.05b#Base system installed successfully. !!!
できあがったツリーは tar でまとめておく
root@UDE:~# cd /mnt/debinst/ root@UDE:/mnt/debinst# tar zcvf /root/LS-GL_mnt_debinst_mnt_debinst.tar.gz mnt/debinstあとは、
| ← LS-GL:debian のインストール:再現 | ハックの記録 LinkStation/玄箱 をハックしよう | → LS-GL:debian のインストール:再現(3) |