[Bug 1496672] [NEW] casper check_dev bind mount directory when?

Jay Michael jmichael_ll at yahoo.com
Thu Sep 17 03:57:16 UTC 2015


Public bug reported:

     initramfs-tools/scripts/casper function check_dev will bind /cdrom
to the "device" being checked if it is a directory (and contains a
filesystem.squashfs file).

     When will that "device" ever be a directory?

     Bug #230716  seems to have introduced the code

if [ -d "${devname}" ]; then
   mount -o bind $devname $mountpoint
   if is_casper_path $mountpoint; then
     echo $mountpoint
     return 0
   endif
 fi

     What I don't understand is what "devname" could be that it could be
identifying a directory, other than a directory in initrd (initramfs?),
which couldn't contain the live media.

** Affects: casper (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Changed in: casper (Ubuntu)
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/ubuntu/+source/casper/+question/271482

-- 
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/1496672

Title:
  casper check_dev bind mount directory when?

Status in casper package in Ubuntu:
  Invalid

Bug description:
       initramfs-tools/scripts/casper function check_dev will bind
  /cdrom to the "device" being checked if it is a directory (and
  contains a filesystem.squashfs file).

       When will that "device" ever be a directory?

       Bug #230716  seems to have introduced the code

  if [ -d "${devname}" ]; then
     mount -o bind $devname $mountpoint
     if is_casper_path $mountpoint; then
       echo $mountpoint
       return 0
     endif
   fi

       What I don't understand is what "devname" could be that it could
  be identifying a directory, other than a directory in initrd
  (initramfs?), which couldn't contain the live media.

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



More information about the foundations-bugs mailing list