[Bug 653633] Re: live-media=<device> is no more supported in casper

phl 653633 at bugs.launchpad.net
Sun Oct 23 10:30:43 UTC 2011


I think you arre speaking about uuid= , don't you ?
Could you remove reference to live-media-path in man casper. It's a lot of waste time trying this feature which will never work ?
Thanks.

By the way, because of this bug I had to use my own method, more general
that the new uuid= because any udev property may be selected, and I rely
only on udev for discovering live-media. Casper just waits udev discover
the right disk.

Ph.L

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/653633

Title:
  live-media=<device> is no more supported in casper

Status in “casper” package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: casper

  From Changelog:

  casper (1.77+debian-1) unstable; urgency=low
  +
  +  ......
  +  * Added boot parameter "live-media=<device>" to force trying to boot from
  +    a specified device.

  From man casper (casper_1.246_i386.deb)

  {live-media|bootfrom}=DEVICE                                             
  If you specify one of this two equivalent forms, casper will first try to find this device for the "/casper" directory where the read-only root filesystem should reside. If it did not find something usable, the normal scan for block devices is performed.

  But from some time ago, this feature has disappeared.

  In /usr/share/initramfs-tools/scripts/casper, in the function

  parse_cmdline ()
  {
      PRESEEDS=
      # looking for casper specifics options as kernel parameters
      for x in $(cat /proc/cmdline); do
          case $x in

  these two lines are no more here

             bootfrom=*|live-media=*)
                  export LIVEMEDIA=${x#*=} ;;

  But it seems that support for this feature still exists partially:

  find_livefs() {
      timeout="${1}"
      # first look at the one specified in the command line
      if [ ! -z "${LIVEMEDIA}" ]; then
          if check_dev "null" "${LIVEMEDIA}" "skip_uuid_check"; then
              return 0
          fi
      fi
      # don't start autodetection before timeout has expired
      if [ -n "${LIVEMEDIA_TIMEOUT}" ]; then

  Actually, more often, this interesting feature never worked well
  because the misplaced timeout make the only one try to use
  ${LIVEMEDIA} too early, before USB are ready, so few people noticed
  its disappearance.

  I suggest restoring parse_cmdline () and moving check_dev "null"
  "${LIVEMEDIA}" after time-out

  Ph.L.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/653633/+subscriptions




More information about the foundations-bugs mailing list