]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/usb/README.technotes
4b2f47c81b67324057e630c657176b5acc1e934b
[bacula/rescue] / rescue / linux / usb / README.technotes
1
2 Technical details of creating the USB key boot images.  Unless
3 you want to rebuild (remaster) the iso boot image, you will not
4 need this.
5
6 The directory "remaster" contains the scripts that allow picking
7 apart a Kubuntu Hardy ISO and then updating and recombining the
8 parts into a USB boot image.  The information below is somewhat
9 low level and should not be needed unless you want to do your
10 own remastering either starting from the Kubuntu release or from
11 the Bacula remastered release.
12
13 Note, the sqfs.tar.gz is the whole squashfs unsquashed.  
14
15 The kernel image (vmlinuz) is a copy of the most recent kernel i.e.
16
17   sqfs/boot/vmlinuz-2.6.24-23-generic
18
19 and initrd.gz is a copy of the most recent initrd.img i.e
20
21   sqfs/boot/initrd.img-2.6.24-23-generic
22
23 they are renamed and put in the kubuntu8 partition in:
24
25   casper/vmlinuz
26 and
27   casper/initrd.gz
28
29 respectively.
30
31 The above updates are automatically done when running
32 the write_sqfs_to_disk_image script.  Then the final
33 step is to tar up kubuntu8.
34
35 Note, initrd.gz is made after fixing the bug in
36 /usr/share/initramfs-tools/scripts/casper 
37 see note 2. in bugs with Kubuntu boot process below.
38
39 When updating the USB root partition (changing something), I 
40 strongly recommend that you work with the disk image then
41 repack it (pack_disk_image) and then run load_disk_image.
42
43
44 Packages needed:
45 apt-get install syslinux mbr
46
47
48 Kubuntu boot tricks:
49 1. Booting with persistence added to the kernel options will permit
50    mounting of a USB casper-rw and home-rw partitions on the USB key.
51    casper-rw is used to store changed OS files, and home-rw is the
52    home directory.
53
54 Bugs with Kubuntu boot process:
55 1. The initrd.gz image must be opened, fixed and the repacked.
56 2. The fix involves removing the ,mode=755 from the mount line for
57    the persistent OS partition (casper-rw) or /cow
58    in /usr/share/initramfs-tools/scripts/casper 
59 3. I have removed /etc/rc0.d/S89casper and /etc/rc6.d/S89casper
60    because they are related to a CDROM boot and create false 
61    errors when booting from a USB key.