create-custom-debian-live-usb-stick-stretch
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| create-custom-debian-live-usb-stick-stretch [2017/09/10 09:34] – [Cleanup & leave chroot environment] baumi | create-custom-debian-live-usb-stick-stretch [2017/11/13 17:34] (current) – baumi | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Create custom debian live usb-stick (stretch) ====== | + | ====== Create custom debian live usb-stick (stretch, amd64) ====== |
| ===== Install necessary packages on the build system ===== | ===== Install necessary packages on the build system ===== | ||
| Line 11: | Line 11: | ||
| root@host: | root@host: | ||
| - | root@host: | + | root@host: |
| [ ... ] | [ ... ] | ||
| </ | </ | ||
| Line 32: | Line 32: | ||
| dbus-uuidgen > / | dbus-uuidgen > / | ||
| - | root@host:/# | + | root@host:/# |
| [ ... ] | [ ... ] | ||
| </ | </ | ||
| Line 42: | Line 42: | ||
| blackbox xserver-xorg-core xserver-xorg xinit xterm \ | blackbox xserver-xorg-core xserver-xorg xinit xterm \ | ||
| pciutils usbutils gparted ntfs-3g hfsprogs rsync less curl tcpdump dosfstools syslinux partclone vim pv \ | pciutils usbutils gparted ntfs-3g hfsprogs rsync less curl tcpdump dosfstools syslinux partclone vim pv \ | ||
| - | firefox-esr chntpw lvm2 mdadm mc htop keepassx gdisk gnupg duplicity | + | firefox-esr chntpw lvm2 mdadm keepassx gdisk gnupg duplicity s3cmd bzip2 lsof screen mc htop iproute2 inetutils-ping inetutils-traceroute |
| [ ... ] | [ ... ] | ||
| - | root@host:/# | ||
| </ | </ | ||
| Line 53: | Line 52: | ||
| apt-get clean && \ | apt-get clean && \ | ||
| rm / | rm / | ||
| - | umount -lf /proc && \ | + | umount -lf /proc /sys /dev/pts |
| - | umount -lf /sys && \ | + | |
| - | umount -lf /dev/pts | + | |
| root@host:/# | root@host:/# | ||
| exit | exit | ||
| - | root@host: | + | root@debian: |
| - | root@host:~/shtf-stick# umount chroot/dev/pts | + | |
| root@host: | root@host: | ||
| </ | </ | ||
| ===== Create filesystem & boot config ===== | ===== Create filesystem & boot config ===== | ||
| < | < | ||
| - | root@host: | + | root@host: |
| - | + | mksquashfs chroot image/ | |
| - | root@host: | + | |
| Parallel mksquashfs: Using 1 processor | Parallel mksquashfs: Using 1 processor | ||
| Creating 4.0 filesystem on image/ | Creating 4.0 filesystem on image/ | ||
| Line 115: | Line 110: | ||
| timeout 300 | timeout 300 | ||
| - | label Debian Live 4.9.0-3-686 | + | label Debian Live 4.9.0-3-amd64 |
| - | menu label ^Debian Live 4.9.0-3-686 | + | menu label ^Debian Live 4.9.0-3-amd64 |
| menu default | menu default | ||
| kernel / | kernel / | ||
| Line 136: | Line 131: | ||
| cp / | cp / | ||
| cp / | cp / | ||
| - | cp / | + | cp / |
| - | + | cd image && \ | |
| - | root@host: | + | genisoimage -rational-rock -volid " |
| - | genisoimage -rational-rock -volid " | + | |
| cd .. | cd .. | ||
| </ | </ | ||
| Line 199: | Line 193: | ||
| 440 bytes (440 B) copied, 0.0564548 s, 7.8 kB/s | 440 bytes (440 B) copied, 0.0564548 s, 7.8 kB/s | ||
| - | root@host: | + | root@host: |
| mount ${DEVICE}1 /mnt/usb | mount ${DEVICE}1 /mnt/usb | ||
| Line 208: | Line 202: | ||
| cp image/ | cp image/ | ||
| cp / | cp / | ||
| - | rsync -rv image/live /mnt/usb/ | + | rsync -rv image/ |
| sending incremental file list | sending incremental file list | ||
| live/ | live/ | ||
| Line 218: | Line 212: | ||
| total size is 308, | total size is 308, | ||
| - | root@host: | ||
| root@host: | root@host: | ||
| </ | </ | ||
create-custom-debian-live-usb-stick-stretch.1505028852.txt.gz · Last modified: by baumi
