Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a custom preseed file for a Precise Live CD (which is well loaded on boot, I checked syslog for that).

My initial problem is that when booting in install mode (default behavior for a Live CD), ubiquity runs X with a default wallpaper which is hardcoded to /usr/share/backgrounds/warty-final-ubuntu.png in Ubiquity code.

So my idea was to run early_command (https://help.ubuntu.com/12.04/installation-guide/i386/preseed-advanced.html) to copy my custom wallpaper over /usr/share/backgrounds/warty-final-ubuntu.png.

Assuming my custom wallpaper allready resides on the rootfs in /usr/share/backgrounds.

But... It seems the early_command never runs (and I'm sure the preseed file is taken into account)

Here is what I have added to my preseed file:

d-i preseed/early_command string cp /usr/share/backgrounds/mywallpaper-defaults.jpg /usr/share/backgrounds/warty-final-ubuntu.png

Even this one is never run:

d-i preseed/early_command string /usr/bin/touch /tmp/testearly

Thanks for helping !!

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

preseed/early_command is run in the initramfs. If you intend to affect files in the live environment, you need to prefix the filenames with /root.

This will not affect the installed system. If you want that, you're better off changing the squashfs directly.

share|improve this answer
    
Thanks ! My aim is specifically to not affect the installed system nor the squashfs as I don't want to broke ubuntu wallpapers package. I want this change to be a 'volatile workaround' from the running live system fs as I can't do anything else cleaner :/ Note that this problem only affect "install" mode as lightdm is not used (but ubiquity-dm). –  martin-mystere Jun 25 '12 at 14:48
    
Updated wiki page: wiki.ubuntu.com/UbiquityAutomation –  martin-mystere Jun 25 '12 at 15:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.