User Tools

Site Tools


common:debian_liveusb

Differences

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

Link to this comparison view

Next revision
Previous revision
common:debian_liveusb [2009/11/26 16:52] – created svschwartzcommon:debian_liveusb [2009/11/26 17:26] (current) svschwartz
Line 22: Line 22:
 Cyrillic and python are just my own requirements and you can drop it if you want. Cyrillic and python are just my own requirements and you can drop it if you want.
  
-Now we will put partimage-ng binary to the soon to be build liveUSB image :)+Now we will put partimage-ng binary to the-soon-to-be-build liveUSB image :)
 <code> <code>
 mkdir -p ~/liveusb/config/chroot_local-includes/usr/sbin mkdir -p ~/liveusb/config/chroot_local-includes/usr/sbin
 cp ~/partimage-ng ~/liveusb/config/chroot_local-includes/usr/sbin cp ~/partimage-ng ~/liveusb/config/chroot_local-includes/usr/sbin
 +chmod 755 ~/liveusb/config/chroot_local-includes/usr/sbin/partimage-ng
 </code> </code>
  
Line 31: Line 32:
 <code> <code>
 cp ~/01-disable_service.sh ~/liveusb/config/chroot_local-hooks cp ~/01-disable_service.sh ~/liveusb/config/chroot_local-hooks
-chmod 755 +chmod 755 ~/liveusb/config/chroot_local-hooks/01-disable_service.sh
 </code> </code>
 +
 +Contents of 01-disable_service.sh
 +<code>
 +#!/bin/sh
 +
 +/bin/echo "I: disable networking"
 +/usr/sbin/update-rc.d -f networking remove
 +</code>
 +
 +
 +Let's build the LiveUSB image now. This will take time, so be patient :)
 +<code>
 +cd ~/liveusb/
 +lh_build
 +</code>
 +
 +If everything goes well we will have binary.img file, which should be copied to usb-flash with dd like this
 +<code>
 +cd ~/liveusb/
 +dd if=binary.img of=/dev/sdb
 +</code>
 +
 +Now you have a bootable liveUSB Debian with partimage-ng onboard :)
 +
 +Hope this will help :)
common/debian_liveusb.1259254333.txt.gz · Last modified: (external edit)