Re,
Une chose, il te faut installer [mono]squashfs-tools[/mono] sur ta machine.
N’ayant pas (plus) suffisamment d’espace sur ma racine, je bosse sur un dd externe.
Tu devrais refaire ta live-USB, (en moins de dix minutes c’est fait) cela évitera probablement bien des soucis, AMHA.
Pour la suite, comptes environ 35 minutes.
[15:47:29] ~ # mount -t ext4 /dev/sdc6 /mnt/
[15:47:52] ~ #
[15:47:53] ~ # cd /mnt
[15:47:57] /mnt #
[15:48:01] /mnt # mkdir prepa_iso && cd prepa_iso
[15:48:15] /mnt/prepa_iso #
[15:48:15] /mnt/prepa_iso # mkdir iso squashfs
[15:48:28] /mnt/prepa_iso #
[15:48:29] /mnt/prepa_iso # ll
total 8,0K
drwx------ 2 root root 4,0K 2014-07-30 15:48 iso
drwx------ 2 root root 4,0K 2014-07-30 15:48 squashfs
[15:48:31] /mnt/prepa_iso #
Je n’ai pas utilisé de CD et travaille directement avec l’iso.
[15:48:31] /mnt/prepa_iso # mount -o loop /home/loreleil/telecharge/debian-live-7.6.0-i386-standard.iso /media
mount: block device /home/loreleil/telecharge/debian-live-7.6.0-i386-standard.iso is write-protected, mounting read-only
[15:48:41] /mnt/prepa_iso #
[15:48:42] /mnt/prepa_iso # cp -a /media/. iso/
[15:49:14] /mnt/prepa_iso #
[15:49:18] /mnt/prepa_iso # umount /media
[15:49:26] /mnt/prepa_iso #
[15:49:27] /mnt/prepa_iso # mount -t squashfs -o loop iso/live/filesystem.squashfs /media/
mount: warning: /media/ seems to be mounted read-only.
[15:49:43] /mnt/prepa_iso #
[15:50:51] /mnt/prepa_iso # cp -a /media/. squashfs/
[15:54:11] /mnt/prepa_iso #
[15:55:45] /mnt/prepa_iso # mount --bind /proc/ squashfs/proc/
[15:55:47] /mnt/prepa_iso # mount --bind /sys/ squashfs/sys/
[15:55:59] /mnt/prepa_iso # mount --bind /dev squashfs/dev/
[15:56:09] /mnt/prepa_iso #
[15:56:15] /mnt/prepa_iso # chroot squashfs
root@pc-2-loreleil:/#
root@pc-2-loreleil:/# ls
bin boot dev etc home initrd.img initrd.img.old lib media mnt opt proc root run sbin selinux srv sys tmp usr var vmlinuz vmlinuz.old
root@pc-2-loreleil:/#
root@pc-2-loreleil:/# cd lib/live/boot
root@pc-2-loreleil:/lib/live/boot#
root@pc-2-loreleil:/lib/live/boot# ls
0010-dracut 0120-read-only 9990-aaa-fixme.sh 9990-initramfs-tools.sh 9990-mount-cifs.sh 9990-mount-nfs.sh 9990-networking.sh 9990-toram-todisk.sh
0020-initramfs-tools 3010-verify-checksums 9990-cmdline-old 9990-main.sh 9990-mount-http.sh 9990-netbase.sh 9990-overlay.sh FIXME
0110-debug 3020-swapon 9990-fstab.sh 9990-misc-helpers.sh 9990-mount-iscsi.sh 9990-netboot.sh 9990-select-eth-device.sh
root@pc-2-loreleil:/lib/live/boot#
En ligne 57 remplaces [mono]DEVICE=${device##/}[/mono] par [mono]ETHDEVICE=${device##/}[/mono]
[mono]root@pc-2-loreleil:/lib/live/boot# nano 9990-networking.sh
root@pc-2-loreleil:/lib/live/boot#[/mono]
root@pc-2-loreleil:/lib/live/boot# cd
root@pc-2-loreleil:~#
root@pc-2-loreleil:~# umount /sys
root@pc-2-loreleil:~# umount /proc
root@pc-2-loreleil:~# umount /dev
root@pc-2-loreleil:~#
root@pc-2-loreleil:~# exit
exit
[16:00:03] /mnt/prepa_iso #
[16:00:04] /mnt/prepa_iso # ls
iso squashfs
[16:00:37] /mnt/prepa_iso #
[16:00:38] /mnt/prepa_iso #
[16:00:59] /mnt/prepa_iso # rm iso/live/filesystem.squashfs
rm : supprimer fichier « iso/live/filesystem.squashfs » ? y
[16:01:04] /mnt/prepa_iso #
[16:01:12] /mnt/prepa_iso # cd squashfs
[16:01:14] /mnt/prepa_iso/squashfs #
[code][16:01:31] /mnt/prepa_iso/squashfs # mksquashfs . …/iso/live/filesystem.squashfs -info
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on …/iso/live/filesystem.squashfs, block size 131072.
mksquashfs: file ./bin/bash, uncompressed size 941252 bytes
mksquashfs: file ./bin/bunzip2, uncompressed size 30268 bytes
mksquashfs: file ./bin/busybox, uncompressed size 683040 bytes
mksquashfs: file ./bin/bzcat, uncompressed size 30268 bytes LINK
[…]
staff (50)
libuuid (101)
Debian-exim (103)
nogroup (65534)
[16:14:51] /mnt/prepa_iso/squashfs #
[16:14:58] /mnt/prepa_iso/squashfs # [/code]
[16:16:00] /mnt/prepa_iso/squashfs # cd ..
[16:16:25] /mnt/prepa_iso #
[16:16:25] /mnt/prepa_iso # cd iso/
[16:16:37] /mnt/prepa_iso/iso # ll live
total 450M
-rw------- 1 root root 423M 2014-07-30 16:14 filesystem.squashfs
-r--r--r-- 1 root root 173K 2014-07-23 18:59 memtest
-r--r--r-- 1 root root 154 2014-07-23 18:59 filesystem.packages-remove
-r--r--r-- 1 root root 12M 2014-07-23 18:59 initrd1.img
-r--r--r-- 1 root root 12M 2014-07-23 18:59 initrd2.img
-r--r--r-- 1 root root 2,4M 2014-07-23 18:59 vmlinuz1
-r--r--r-- 1 root root 2,6M 2014-07-23 18:59 vmlinuz2
-r--r--r-- 1 root root 15K 2014-07-23 18:59 filesystem.packages
[16:16:46] /mnt/prepa_iso/iso #
[16:17:36] ~ # umount /media
[16:17:48] ~ # umount /dev/sdc6
[16:18:14] ~ # mount -t ext4 /dev/sdc6 /media/
À présent remontes ta clé et supprimes le fichier [mono]filesystem.squashfs[/mono].
[16:19:20] ~ # mount /dev/sdb1 /mnt/live/
[16:19:41] ~ # mount /dev/sdb2 /mnt/persistence/
[16:21:31] ~ # cd /mnt/live/live/
[16:21:37] /mnt/live/live #
[16:21:37] /mnt/live/live #
[16:21:50] /mnt/live/live # rm filesystem.squashfs
rm : supprimer fichier « filesystem.squashfs » ? y
[16:21:56] /mnt/live/live #
Maintenant le [mono]filesystem.squashfs[/mono] recréer ci-dessus, il te restes à le copier sur ta live-USB.
[16:22:47] ~ # cp /media/prepa_iso/iso/live/filesystem.squashfs /mnt/live/live/
[16:24:49] ~ #
[16:24:52] ~ # ll /mnt/live/live
total 450M
-rwxr-xr-x 1 root root 423M 2014-07-30 16:24 filesystem.squashfs
-rwxr-xr-x 1 root root 173K 2014-07-23 18:59 memtest
-rwxr-xr-x 1 root root 154 2014-07-23 18:59 filesystem.packages-remove
-rwxr-xr-x 1 root root 12M 2014-07-23 18:59 initrd1.img
-rwxr-xr-x 1 root root 12M 2014-07-23 18:59 initrd2.img
-rwxr-xr-x 1 root root 2,4M 2014-07-23 18:59 vmlinuz1
-rwxr-xr-x 1 root root 2,6M 2014-07-23 18:59 vmlinuz2
-rwxr-xr-x 1 root root 15K 2014-07-23 18:59 filesystem.packages
[16:24:57] ~ #
[16:25:19] ~ # umount /mnt/live
[16:25:21] ~ # umount /mnt/persistence
C’est terminé ! 