Casper options are not honored by the initramfs

Bug #907482 reported by bodhi.zazen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When booting a custom CD you should be able to set a number of options as listed in the casper man page

http://manpages.ubuntu.com/manpages/oneiric/man7/casper.7.html

The ones I am wanting to use are

     hostname=HOSTNAME , userfullname=USERFULLNAME , username=USERNAME
              Those parameters lets you override values read from the config
              file.

The problems are :

1. If you boot an x/k/ubuntu desktop CD, and use those options, hostname=foo username=bar userfullname=foobar , none of those options are honored because of the casper scripts in the initramfs >_<

#1 My preference would obviously be to honor the man pages, it would be nice if casper worked as it should.
#2 If you do not want to allow these boot options, consider updating the ubuntu man pages. It is frustrating when things do not work according to the man page.

If you then try to customize the cd https://help.ubuntu.com/community/LiveCDCustomization

2. The casper scripts over write /etc/casper.conf at some point in using mksquashfs. So even if I edit /etc/casper.conf it is not properly packaged on the resulting iso.

So the "solution" is to manually unpackage the initramfs and start hacking through the customizations to the scripts or build a CD from scratch.

Changed in casper (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package casper - 1.327

---------------
casper (1.327) quantal; urgency=low

  [ Tim Lunn ]
  * add gnome-shell favorites tweak to 25adduser
  * Add 16gdmnopasswd script, removes gdm password dialog for live user.

  [ Stéphane Graber ]
  * Fix casper when running on some RAID systems. (LP: #1047316, LP: #965735)
  * Apply patch by Tyler Gates to try and better handle dm devices, should help
    with the above change too. (LP: #865529)
  * Use /sys/class/net/ instead of hardcoded eth* devices.
    (LP: #905828, LP: #962546)
  * Allow overriding username/userfullname/hostname on the boot command line
    as is mentioned in the manpage but was never implemented.
    Note that when using persistence, those used for the first boot will be
    remembered through /etc/casper.conf (LP: #907482)
  * Reset oem-config/enable to false every boot. (LP: #838680)
  * Add Breaks/Replaces to ubiquity-casper to properly upgrade when both
    casper and ubiquity-casper are installed. (LP: #1046300)
  * Apply patch by cleary to avoid hang in 41apt_cdrom when .disk/info doesn't
    exist. (LP: #909919)
  * Eject by block device instead of mountpoint, this should avoid ejecting
    the cdrom on USB installations. (LP: #869238)
  * Add 'check' target to debian/rules based on ubiquity's (LP: #570243)
 -- Stephane Graber <email address hidden> Wed, 03 Oct 2012 17:46:39 -0400

Changed in casper (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.