You will be able to manage the daily build iso files of the Ubuntu family flavours, to install and update them incrementally directly in the pendrive, which saves time and effort. So a 'grub-n-iso' pendrive with the shell-scripts links2check and links2update should be a convenient tools for all our iso-testers as well as for other people who want to try the bleeding edge version.
Manage the daily built iso files of your choice
Notice that a pendrive with this system can be upgraded directly. So you get the upgrade directly from the Ubuntu server to the pendrive without a detour to a hard disk drive. Of course you have to reboot to test/use the new version, but this direct method is convenient and saves time. Pendrives are often slow, and I have found that rsync behaves much better than zsync, when the target drive for updating is a pendrive. (So this system uses rsync instead of zsync, that seemed better at first glance.)
One big advantage is that there is no need for copying/cloning/flashing from the internal drive to the pendrive. The slowness of the internet connection matches quite well the slowness of a USB 2 connection, so you don't lose much time anyway.
When installed and running from the 'grub-n-iso' pendrive, change directory to /isodevice and run links2check to create and maintain the system. You arrive at the main (zenity) menu. See attachment #1, where you can select a flavour (in this case Ubuntu). After that you arrive at the iso file menu, where you select architecture (in this case 64-bit). See attachment #2. You can follow the process in the terminal window, how the MD5SUMS file is downloaded, and used, but there is no iso file yet. Then rsync starts downloading the iso file and finally it is checked with md5sum.
Code:
cd /isodevice
sudo -H ./links2check
sudo -H ./links2update
Starting from the compressed image file dd_lubu-14.04.2-desktop-i386_isotest1_7.8GB.img.xz and running a persistent live session, you are helped by some tweaks, that are prepared and saved in the casper-rw file, so that you arrive easily in the directory /isodevice and can start managing the ISO files.
links2update makes daily updating of the ISO files easy. There is only one (zenity) menu, and you select one file or all files to update.
But you are not ready yet. You should also link to the targets in the current directory. Start links2check again and select the first or last line for this linking mode. See attachment #3. There is also output text in the terminal window (similar to the following example).
Code:
$ sudo -H ./links2check
Using template 'grub.cfg' in the current directory
'ubuntu-wily-desktop-amd64.iso' -> 'cdimage.ubuntu.com/daily-live/current/wily-desktop-amd64.iso'
1 linked daily iso file(s) - with grub menuentries
1 linked regular iso file(s) - with grub menuentries
0 iso file(s) that cannot be booted by the 'grub-n-iso' method
$
There are grub menuentries for two iso files, the original 'Lubuntu-14.04.2-desktop-i386.iso' and the new 'Ubuntu-wily-desktop-amd64.iso'. The file grub-final.cfg is copied automatically to the active boot directory.
Code:
sudo cp grub-final.cfg 'mountpoint'/boot/grub/grub.cfg
Code:
set timeout=10
set default=0
menuentry "Lubuntu-14.04.2-desktop-i386.iso - live" {
set root=(hd0,2)
loopback loop /lubuntu-14.04.2-desktop-i386.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/lubuntu-14.04.2-desktop-i386.iso splash --
initrd (loop)/casper/initrd.lz
}
menuentry "Lubuntu-14.04.2-desktop-i386.iso - persistent live" {
set root=(hd0,2)
loopback loop /lubuntu-14.04.2-desktop-i386.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/lubuntu-14.04.2-desktop-i386.iso splash persistent -- persistent
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu-wily-desktop-amd64.iso - live" {
set root=(hd0,2)
loopback loop /cdimage.ubuntu.com/daily-live/current/wily-desktop-amd64.iso
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=/cdimage.ubuntu.com/daily-live/current/wily-desktop-amd64.iso splash --
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu-wily-desktop-amd64.iso - persistent live" {
set root=(hd0,2)
loopback loop /cdimage.ubuntu.com/daily-live/current/wily-desktop-amd64.iso
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=/cdimage.ubuntu.com/daily-live/current/wily-desktop-amd64.iso splash persistent -- persistent
initrd (loop)/casper/initrd.lz
}
The next time you boot, there will be grub menu items also for the Ubuntu wily daily build (according to this example).
Use links2update to let rsync update the iso file the next day or later, when you have time again to test your favourite Ubuntu flavour daily iso file(s).
Use mkusb-nox to install from the Ubuntu Server and Lubuntu alternate iso files, that do not boot via grub.
Bookmarks