chown: failed to get attributes of `/var/log/dmesg': No such file or directoryと、
E: Directory '/var/log/apt/' missingというエラーが出た。
アーカイブを作り直す。
使うのは、速い LS-XHL。
brick:~# date Wed Jul 7 05:03:46 JST 2004 brick:~# date 022622392009 Thu Feb 26 22:39:00 JST 2009 brick:~#
brick:~# cd /mnt/share/hackkit/ brick:/mnt/share/hackkit# ls root bin dev home lib mnt proc sbin srv tmp var boot etc initrd media opt root selinux sys usr brick:/mnt/share/hackkit#この前作ったときのが残っているので、 展開は不要。
brick:/mnt/share/hackkit# mkdir root/var/log/apt brick:/mnt/share/hackkit#パーミッションも確認。
brick:/mnt/share/hackkit# ls -ld /var/log/apt/ drwxr-xr-x 2 root root 21 Nov 21 18:41 /var/log/apt/ brick:/mnt/share/hackkit# ls -ld root/var/log/apt/ drwxr-xr-x 2 root root 6 Feb 26 22:41 root/var/log/apt/ brick:/mnt/share/hackkit#
brick:/mnt/share/hackkit# ls -ld root/var/log/apt/ drwxr-xr-x 2 root root 6 Feb 26 22:41 root/var/log/apt/ brick:/mnt/share/hackkit# ls -l /var/log/dmesg -rw-r----- 1 root adm 6526 Jul 7 2004 /var/log/dmesg brick:/mnt/share/hackkit# touch root/var/log/dmesg brick:/mnt/share/hackkit# chown root.adm root/var/log/dmesg brick:/mnt/share/hackkit# chmod 640 root/var/log/dmesg brick:/mnt/share/hackkit# ls -l !$ ls -l root/var/log/dmesg -rw-r----- 1 root adm 0 Feb 26 22:42 root/var/log/dmesg brick:/mnt/share/hackkit#エラー対応完了。
パッケージのアップデートもやっておく。
brick:/mnt/share/hackkit# chroot root brick:/#
brick:/# apt-get update Get:1 http://security.debian.org lenny/updates Release.gpg [189B] Hit http://ftp.jp.debian.org lenny Release.gpg Get:2 http://security.debian.org lenny/updates Release [40.7kB] Hit http://ftp.jp.debian.org lenny Release Ign http://ftp.jp.debian.org lenny/main Packages/DiffIndex Ign http://ftp.jp.debian.org lenny/main Sources/DiffIndex Hit http://ftp.jp.debian.org lenny/main Packages Ign http://security.debian.org lenny/updates/main Packages/DiffIndex Hit http://ftp.jp.debian.org lenny/main Sources Ign http://security.debian.org lenny/updates/main Sources/DiffIndex Get:3 http://security.debian.org lenny/updates/main Packages [37.7kB] Get:4 http://security.debian.org lenny/updates/main Sources [12.7kB] Fetched 91.3kB in 3s (23.6kB/s) Reading package lists... Done brick:/#やっぱ、速いわ。
brick:/# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. brick:/#あれ?ない。
brick:/# apt-get clean brick:/#
brick:/# exit exit brick:/mnt/share/hackkit# rm root/root/.bash_history brick:/mnt/share/hackkit#
brick:/mnt/share/hackkit# cd root brick:/mnt/share/hackkit/root# tar zcvf ../hackkit_090226.tar.gz . : :できた。
yasunari@ude:/home/linkstation/HackKit/unified/current$ diff -c ../old/hackkit_0 90225.sh hackkit_090227.sh *** ../old/hackkit_090225.sh Wed Feb 25 22:41:35 2009 --- hackkit_090227.sh Fri Feb 27 17:06:31 2009 *************** *** 13,19 **** HOSTNAME=hackkit WORK=/mnt/disk1/share/hackkit ! HACKKIT=$WORK/hackkit_090224.tar.gz MOUNTPOINT=/mnt/debinst cd $WORK --- 13,19 ---- HOSTNAME=hackkit WORK=/mnt/disk1/share/hackkit ! HACKKIT=$WORK/hackkit_090226.tar.gz MOUNTPOINT=/mnt/debinst cd $WORK yasunari@ude:/home/linkstation/HackKit/unified/current$
さあ、もう一回最初から全機種動作確認。
← LS-XHL, LS-QL 対応ハックキットの LS-WSGL へのインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-XHL, LS-QL 対応ハックキットの確認(1)LS-WSGL |