blino's website

Free software developer and more

draklive now uses system's mount to mount NFS loopbacks. It used busybox's mount to do that, but our busysbox mount isn't built with NFS nolock support.



draklive now uses an optionnal config/distrib.sort file if available to sort the squashfs image. It allows to optimizes the image by ordering files according to their access order.

For now, the sort file is generated from a bootlog.list boot profile with this command: perl -MMDK::Common -e 'print map_index { (32767 - $::i) . " $_" } grep { !m,^/(?:dev|proc|sys|live/distrib), } uniq(<>)' < bootlog.list > config/distrib.sort



I've uploaded the initial package of draklive is our Live systems generation and copying tool.

It allows to generate Mandriva live systems, and to copy running live systems to CD or USB media (draklive --copy-wizard).

See http://qa.mandriva.com/twiki/bin/view/Main/DrakLive

This new package will allow the copy wizard to be present on Mandriva 2007.0 beta snapsshots, that is to say, to create live systems on USB from a live CD-Rom (sure, we can do that).

USB keys are cheap now (1 GB for 25 euros), try it!



I've uploaded the draklive-install package, which is used to do live installations from a running live system (for example in Mandriva One).

Now, I just have to clean it a bit, so that it doesn't "borrow" (well, duplicate) code from our installer anymore.



draklive now passes langs to the installer using DRAKLIVE_LANGS environment, which is then used in the auto_install file.

Else, $o->{locale} from auto_inst will override --langs command line options (it worked in 2006.0 because the --langs support patch was applied on the fly, after the auto-install wazs read).



Since we now want to generate both Gnome and KDE live systems, we need some way to keep a common installer configuration with some desktop specific parts.

draklive now allows to specify environment variables in the config file, using $live->{system}{install_env}. These variables can then be used in the installer.

For exemple, we export a DRAKLIVE_DESKTOP variable, which is used in the auto_install.cfg.pl file to select packages and categories according to the desktop. It is also useful to select arch specific packages or tricks.



Sometimes, we need to include additionnal modules in live systems, for example the unionfs module the kernel team forget to build, or some crappy profiling module.

draklive now alllows to include additional modules by specifying a .ko list in $live->{system}{additional_modules}.



The grub/isolinux/syslinux title can now be configured using the $live->{media}{title} configuration field. It allows to build custom media more easily.



draklive now guesses the grub partition that should be used in the menu.lst file, based on the recording device name. It previously used the hardcoded (hd0,0) partition.

This is useful when writing to USB keys that must have a Windows partition as first partition.



  • apply patches and install files after the configuration is cleaned to allow special configuration files (especially modprobe.preload)

Previously, we cleaned the configuration files (fstab, mtab, modprobe.conf, modprobe.preload, iftab, shorewall interfaces, mdadm.conf) after all other post-install stuff, to remove references to the build host hardware.

But this also cleaned the new modprobe.preload file that could have been copied after the installation.



  • preselect user in kdm only if specified
  • allow to use ext3 as well as ext2 for master images
  • run busybox from chroot to get busybox functions list, since it may not be present on build host
  • use grub for USB devices


  • use nash and busybox from cooker host
  • check for kdmrc in chroot, not build host (to have "guest" user preselected)


wait some minutes for the sync to be done when umounting USB devices (avoid corrupted transfers)



blosxom Optimised for standards.
Olivier Blin (2005)