Package: casper
Version: 1.340.2

Effect:
filesystem.squashfs cannot be mounted during boot. The system is packed
in iso-image file of type "udf".

This error message is displayed:
"(initramfs) mount: mounting /dev/loop0 on //filesystem.squashfs failed:
invalid argument
can not mount /dev/loop0 (...) on //filesystem.squashfs"

Problem:
During start-up, the iso-image file will not be mounted properly.
The file system of the iso-image is "udf". The mount operation is
performed with type "iso9660" instead "udf".

Reason:
The file system of the iso-image is determined with "fstype", located in
/usr/lib/klibc/bin.
Unfortunately, fstype cannot distinguish between iso9660 and udf. The
type "iso9660" is always reported, also if "udf" is the correct file type.
This leads to a wrong mount command.
The iso-image file will be mounted, but all files which are larger
then 4 GB within the image file, cannot be read correctly.

Proposal for solution:
Changes within "/usr/share/initramfs-tools/scripts/casper-helpers":
If fstype detect an iso9660 file type, an additional check is necessary
to distinguish, if it is udf or iso9660.
For this, add following four source lines (marked with "added by.."):
--- /usr/share/initramfs-tools/scripts/casper-helpers ------------------
... snip ...
get_fstype() {
    local FSTYPE
    local FSSIZE
    eval $(fstype < $1)
    # added: fstype cannot detect file system of type "udf"
    if [ "$FSTYPE" == "iso9660" ]; then            # added
       /sbin/blkid -s TYPE -o value $1 2>/dev/null # added
       return 0                                    # added
    fi                                             # added
    if [ "$FSTYPE" != "unknown" ]; then
        echo $FSTYPE
        return 0
    fi
    /sbin/blkid -s TYPE -o value $1 2>/dev/null
}
... snip ...
---------------------------------------------------------------------





#### Configuration #######################################
dpkg --list casper

Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler:
GROSS=schlecht)
||/ Name                                                        Version
                                            Architektur  Beschreibung
+++-===========================================================-===================================================-============-================================================================================================
ii  casper                                                      1.340.2
                                            i386         Run a "live"
preinstalled system from read-only media

dpkg --status casper

Package: casper
Status: install ok installed
Priority: extra
Section: misc
Installed-Size: 256
Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
Architecture: i386
Version: 1.340.2
Depends: libc6 (>= 2.8), libplymouth2 (>= 0.8.0~-13~ppa1),
initramfs-tools (>= 0.92bubuntu55), busybox-initramfs (>=
1:1.1.3-4ubuntu3), dmsetup, user-setup, sudo, eject, uuid-runtime,
localechooser-data (>= 2.03ubuntu1), util-linux (>= 2.15-1), file, lzma,
udev (>= 174), cifs-utils
Breaks: genext2fs (<< 1.4.1)
Conflicts: live-initramfs, usplash (<< 0.4-43)
Conffiles:
 /etc/casper.conf 873654121350964ec51b3ccd8c0186cd
 /etc/init.d/casper 8bdad2b8ddb53a7450a832837593f34d
Description: Run a "live" preinstalled system from read-only media
Tag: admin::boot, admin::filesystem, implemented-in::shell,
protocol::smb, role::plugin, scope::utility, special::completely-tagged,
works-with-format::iso9660

dpkg -L casper

/.
/usr
/usr/share
/usr/share/casper
/usr/share/casper/casper-reconfigure
/usr/share/casper/casper-set-selections
/usr/share/casper/casper-update-initramfs
/usr/share/casper/casper-preseed
/usr/share/initramfs-tools
/usr/share/initramfs-tools/conf.d
/usr/share/initramfs-tools/hooks
/usr/share/initramfs-tools/hooks/casper
/usr/share/initramfs-tools/conf-hooks.d
/usr/share/initramfs-tools/conf-hooks.d/casper
/usr/share/initramfs-tools/scripts
/usr/share/initramfs-tools/scripts/casper
/usr/share/initramfs-tools/scripts/casper-helpers
/usr/share/initramfs-tools/scripts/casper-premount
/usr/share/initramfs-tools/scripts/casper-premount/10driver_updates
/usr/share/initramfs-tools/scripts/casper-bottom
/usr/share/initramfs-tools/scripts/casper-bottom/23networking
/usr/share/initramfs-tools/scripts/casper-bottom/33enable_apport_crashes
/usr/share/initramfs-tools/scripts/casper-bottom/49kubuntu_mobile_session
/usr/share/initramfs-tools/scripts/casper-bottom/13swap
/usr/share/initramfs-tools/scripts/casper-bottom/40install_driver_updates
/usr/share/initramfs-tools/scripts/casper-bottom/25configure_init
/usr/share/initramfs-tools/scripts/casper-bottom/18hostname
/usr/share/initramfs-tools/scripts/casper-bottom/25adduser
/usr/share/initramfs-tools/scripts/casper-bottom/32disable_hibernation
/usr/share/initramfs-tools/scripts/casper-bottom/07remove_oem_config
/usr/share/initramfs-tools/scripts/casper-bottom/15autologin
/usr/share/initramfs-tools/scripts/casper-bottom/22sslcert
/usr/share/initramfs-tools/scripts/casper-bottom/36disable_trackerd
/usr/share/initramfs-tools/scripts/casper-bottom/41apt_cdrom
/usr/share/initramfs-tools/scripts/casper-bottom/01integrity_check
/usr/share/initramfs-tools/scripts/casper-bottom/35fix_language_selector
/usr/share/initramfs-tools/scripts/casper-bottom/48kubuntu_disable_restart_notifications
/usr/share/initramfs-tools/scripts/casper-bottom/43disable_updateinitramfs
/usr/share/initramfs-tools/scripts/casper-bottom/44pk_allow_ubuntu
/usr/share/initramfs-tools/scripts/casper-bottom/26serialtty
/usr/share/initramfs-tools/scripts/casper-bottom/22desktop_settings
/usr/share/initramfs-tools/scripts/casper-bottom/50ubiquity-bluetooth-agent
/usr/share/initramfs-tools/scripts/casper-bottom/20xconfig
/usr/share/initramfs-tools/scripts/casper-bottom/45jackd2
/usr/share/initramfs-tools/scripts/casper-bottom/31disable_update_notifier
/usr/share/initramfs-tools/scripts/casper-bottom/30accessibility
/usr/share/initramfs-tools/scripts/casper-bottom/24preseed
/usr/share/initramfs-tools/scripts/casper-bottom/05mountpoints
/usr/share/initramfs-tools/scripts/casper-bottom/16gdmnopasswd
/usr/share/initramfs-tools/scripts/casper-bottom/19keyboard
/usr/share/initramfs-tools/scripts/casper-bottom/34disable_kde_services
/usr/share/initramfs-tools/scripts/casper-bottom/12fstab
/usr/share/initramfs-tools/scripts/casper-bottom/14locales
/usr/share/initramfs-tools/scripts/casper-functions
/usr/share/doc
/usr/share/doc/casper
/usr/share/doc/casper/changelog.gz
/usr/share/doc/casper/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/casper-snapshot.1.gz
/usr/share/man/man7
/usr/share/man/man7/casper.7.gz
/usr/lib
/usr/lib/casper
/usr/lib/casper/casper-md5check
/sbin
/sbin/casper-snapshot
/sbin/casper-getty
/sbin/casper-new-uuid
/sbin/casper-login
/etc
/etc/casper.conf
/etc/init.d
/etc/init.d/casper

-- 
Thomas Schake
Rabenweg 6
89250 Senden
Tel.: 07307/30 90 06
Mobil: 0160/367 99 83
Email: tho...@schake.de

Reply via email to