create-custom-debian-live-usb-stick-stretch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
create-custom-debian-live-usb-stick-stretch [2017/09/16 09:53] baumicreate-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:~# mkdir /root/shtf-stick && cd /root/shtf-stick root@host:~# mkdir /root/shtf-stick && cd /root/shtf-stick
    
-root@host:~/shtf-stick# debootstrap --arch=i386 --variant=minbase stretch chroot http://http.at.debian.org/debian/+root@host:~/shtf-stick# debootstrap --arch=amd64 --variant=minbase stretch chroot http://http.at.debian.org/debian/
 [ ... ] [ ... ]
 </code> </code>
Line 32: Line 32:
 dbus-uuidgen > /var/lib/dbus/machine-id dbus-uuidgen > /var/lib/dbus/machine-id
  
-root@host:/# apt-get install --no-install-recommends --yes linux-image-586 firmware-linux-free systemd-sysv live-boot kbd console-data+root@host:/# apt-get install --no-install-recommends --yes linux-image-amd64 firmware-linux-free systemd-sysv live-boot kbd console-data
 [ ... ] [ ... ]
 </code> </code>
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 iproute2 s3cmd inetutils-ping inetutils-traceroute lsof screen netcat-openbsd+firefox-esr chntpw lvm2 mdadm  keepassx gdisk gnupg duplicity s3cmd bzip2 lsof screen mc htop iproute2 inetutils-ping inetutils-traceroute  netcat-openbsd 
    
 [ ... ] [ ... ]
Line 110: 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 /live/vmlinuz1 kernel /live/vmlinuz1
Line 131: Line 131:
 cp /usr/lib/syslinux/modules/bios/ldlinux.c32 image/isolinux/ && \ cp /usr/lib/syslinux/modules/bios/ldlinux.c32 image/isolinux/ && \
 cp /usr/share/misc/pci.ids image/isolinux/ && \ cp /usr/share/misc/pci.ids image/isolinux/ && \
-cp /boot/memtest86+.bin image/live/memtest +cp /boot/memtest86+.bin image/live/memtest && \ 
-  +cd image && \
-root@host:~/shtf-stick# cd image && \+
 genisoimage -rational-rock -volid "SHTF" -cache-inodes -joliet -full-iso9660-filenames -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -output ../debian-shtf-$(date +%Y%m%d_%H%M).iso . && \ genisoimage -rational-rock -volid "SHTF" -cache-inodes -joliet -full-iso9660-filenames -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -output ../debian-shtf-$(date +%Y%m%d_%H%M).iso . && \
 cd .. cd ..
Line 203: Line 202:
 cp image/isolinux/isolinux.cfg /mnt/usb/syslinux.cfg && \ cp image/isolinux/isolinux.cfg /mnt/usb/syslinux.cfg && \
 cp /usr/share/misc/pci.ids /mnt/usb/ && \ cp /usr/share/misc/pci.ids /mnt/usb/ && \
-rsync -rv image/live /mnt/usb/+rsync -rv image/live /mnt/usb/ && date +%Y%m%d_%H%M > /mnt/usb/CREATED && umount /mnt/usb/
 sending incremental file list sending incremental file list
 live/ live/
Line 213: Line 212:
 total size is 308,478,319  speedup is 1.00 total size is 308,478,319  speedup is 1.00
    
-root@host:~/shtf-stick# umount /mnt/usb/ 
 root@host:~/shtf-stick# root@host:~/shtf-stick#
 </code> </code>
create-custom-debian-live-usb-stick-stretch.1505548390.txt.gz · Last modified: 2017/09/16 09:53 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki