Molecule - squash mount error [Solved]

If you are using the daily ISO, please report issues here to keep confusion down in other forums. Questions or issues with Molecule also here

Moderator: Moderators

Molecule - squash mount error [Solved]

Postby albfneto » Wed Mar 30, 2011 9:06

I try to remasterize Sabayon 64 bits, KDE + GNOME. I modified the method reported in Sabayon wiki.
i downloaded the last daily build ISO,with KDE, rename to sabayon.iso (the starting ISO) and try to remasterize in the /home/albfneto/Desktop/remaster/final directory, using this SPEC file (sabayongk.spec)


Code: Select all
 # Sabayon Linux 5 64 Bits GNOME+KDE Molecule remaster spec file
    # The aim of this spec file is to add arbitrary applications & misc stuff
    # to an already built ISO image via scripting (providing hooks that call
    # user-defined scripts).
    # squashfs, mkisofs needed

 # Define an alternative execution strategy, in this case, the value must be
    # "iso_remaster"
    execution_strategy: iso_remaster

 # pre chroot command, example, for 32bit chroots on 64bit system, you always
    # have to append "linux32" this is useful for inner_chroot_script
    # prechroot: linux32

# Path to source ISO file (MANDATORY)
    source_iso: /home/albfneto/Desktop/remast/final/sabayon.iso

# Error script command, executed when something went wrong and molecule has to terminate the execution
    # environment variables exported:
    # - CHROOT_DIR: path to chroot directory, if any
    # - CDROOT_DIR: path to livecd root directory, if any
    # - SOURCE_CHROOT_DIR: path from where chroot is copied for final handling
    # error_script: /path/to/script/to/be/executed/outside/after

# Outer chroot script command, to be executed outside destination chroot before
    # before entering it (and before inner_chroot_script)
    outer_chroot_script: /spin/remaster_pre.sh
 # Inner chroot script command, to be executed inside destination chroot before packing it
    # - kmerge.sh - setup kernel bins
    #  inner_chroot_script:

 Inner chroot script command, to be executed inside destination chroot after
    # packages installation and removal
    # inner_chroot_script_after: /remast/final/inner_chroot_script_after.sh

 # Inner chroot script command, to be executed inside destination chroot after
    # packages installation and removal
    # inner_chroot_script_after: /remast/final/inner_chroot_script_after.sh

  # Outer chroot script command, to be executed outside destination chroot before
    # before entering it (and before inner_chroot_script)
    # outer_chroot_script: /remast/final/remaster_pre.sh

# Extra mkisofs parameters, perhaps something to include/use your bootloader
   extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat

  # Pre-ISO building script. Hook to be able to copy kernel images in place, for example
  # pre_iso_script: /sabayon/scripts/cdroot.py

  # Destination directory for the ISO image path (MANDATORY)
  destination_iso_directory: /home/albfneto/Desktop//remast/final

 # Destination ISO image name, call whatever you want.iso, not mandatory
 destination_iso_image_name: Sabayon_Linux_GNOME_KDE

 # Output iso image title
  iso_title: Sabayon_Linux_GNOME_KDE

# Alternative ISO file mount command (default is: mount -o loop -t iso9660)
  # iso_mounter:
# Alternative ISO umounter command (default is: umount)
  # iso_umounter:

# Merge directory with destination LiveCD root
  # merge_livecd_root: /put/more/files/onto/CD/root

 # List of packages that would be removed from chrooted system (comma separated)
  packages_to_remove:

# Custom shell call to packages removal (default is: equo remove)
 # custom_packages_remove_cmd:

 # List of packages that would be added from chrooted system (comma separated)
  packages_to_add:@gnome,
   app-admin/gnome-system-tools,
   app-admin/packagekit-base,
   app-admin/packagekit-gtk,
   app-admin/system-tools-backends,
   app-dicts/aspell-pt,
   app-dicts/myspell-pt_BR,
   app-editors/gedit,
   app-emulation/virtualbox-guest-additions,
   app-emulation/wine,
   app-misc/anaconda-runtime-gui,
   app-misc/gnote,
   app-misc/sabayon-version,
   app-misc/sabayon-music,
   app-misc/sabayon-mce,
   app-misc/sabayon-skel,
   app-text/gnome-spell,
   app-text/pastebunz,
   dev-java/sun-jre-bin,
   gnome-base/gnome-shell,
   gnome-base/gnome-applets,
   gnome-extra/deskbar-applet,
   gnome-extra/fast-user-switch-applet,
   gnome-extra/gcalctool,
   gnome-extra/gconf-editor,
   gnome-extra/gnome-games,
   gnome-extra/gnome-power-manager,
   gnome-extra/gnome-screensaver,
   gnome-extra/gnome-utils,
   gnome-extra/gucharmap,
   gnome-extra/nautilus-open-terminal,
   gnome-extra/nautilus-sendto,
   gnome-extra/nm-applet,
   gnome-extra/polkit-gnome,
   mail-client/evolution,
   media-fonts/ttf-bitstream-vera,
   media-fonts/dejavu,
   media-fonts/corefonts,
   media-gfx/shotwell,
   media-gfx/gimp,
   media-libs/libdvdread,
   media-libs/libdvdcss,
   media-libs/libdvdplay,
   media-libs/libdvdnav,
   media-plugins/alsa-plugins,
   media-sound/audacious,
   media-sound/padevchooser,
   media-sound/paman,
   media-sound/pavucontrol,
   media-sound/pavumeter,
   media-tv/afatech9005-firmware,
   media-tv/ivtv-firmware,
   media-tv/xbmc,
   media-video/mplayer,
   media-video/totem,
   net-analyzer/gnome-netstatus,
   net-dialup/globespan-adsl,
   net-dialup/gnome-ppp,
   net-dialup/ppp,
   net-dialup/rp-pppoe,
   net-fs/samba,
   net-im/pidgin,
   net-irc/xchat,
   net-misc/networkmanager,
   net-misc/networkmanager-openvpn,
   net-misc/networkmanager-pptp,
   net-misc/networkmanager-vpnc,
   net-misc/ntp,
   net-p2p/deluge,
   net-print/cups,
   net-print/gnome-cups-manager,
   net-print/foomatic-db,
   net-print/foomatic-db-ppds,
   net-print/foomatic-filters,
   net-print/foomatic-filters-ppds,
   net-print/gutenprint,
   net-wireless/acx-firmware,
   net-wireless/atmel-firmware,
   net-wireless/b43-firmware,
   net-wireless/b43-fwcutter,
   net-wireless/bcm43xx-firmware,
   net-wireless/bcm43xx-fwcutter,
   net-wireless/bluez,
   net-wireless/bluez-firmware,
   net-wireless/bluez-hcidump,
   net-wireless/broadcom-sta,
   net-wireless/gnome-bluetooth,
   net-wireless/ipw2200-firmware,
   net-wireless/ipw3945-ucode,
   net-wireless/ipw3945d,
   net-wireless/iwl3945-ucode,
   net-wireless/iwl3945-ucode,
   net-wireless/iwl4965-ucode,
   net-wireless/iwl4965-ucode,
   net-wireless/iwl5000-ucode,
   net-wireless/iwl5000-ucode,
   net-wireless/iwl5150-ucode,
   net-wireless/iwl6000-ucode,
   net-wireless/libertas-firmware,
   net-wireless/linux-wlan-ng-firmware,
   net-wireless/linux-wlan-ng-utils,
   net-wireless/ndiswrapper,
   net-wireless/prism54-firmware:0,
   net-wireless/prism54-usb-firmware,
   net-wireless/rt61-firmware,
   net-wireless/rt73-firmware,
   net-wireless/zd1201-firmware,
   net-wireless/zd1211-firmware,
   sys-apps/gpu-detector,
   sys-apps/entropy-client-services,
   sys-apps/gnome-disk-utility,
   sys-apps/hal,
   sys-apps/hdparm,
   sys-apps/sdparm,
   sys-apps/tuxonice-userui,
   sys-block/gparted,
   sys-fs/dmraid,
   sys-fs/ntfs3g,
   sys-power/acpid,
   www-client/mozilla-firefox,
   www-plugins/adobe-flash,
   www-plugins/nspluginwrapper,
   x11-apps/xdm,
   x11-terms/guake,
   x11-terms/xterm,
   x11-drivers/xf86-video-virtualbox,
   x11-drivers/ati-drivers,
   x11-drivers/nvidia-drivers,
   x11-misc/alacarte,
   x11-misc/desktop-acceleration-helpers,
   x11-misc/magneto-gtk,
   x11-misc/xvkbd,
   x11-plugins/compiz-plugins-extra,
   x11-plugins/compiz-plugins-main,
   x11-plugins/compiz-plugins-unsupported,
   x11-terms/gnome-terminal,
   x11-themes/emerald-themes,
   x11-themes/gnome-backgrounds,
   x11-themes/gnome-colors-common,
   x11-themes/gnome-colors-themes,
   x11-themes/gnome-icon-theme,
   x11-themes/gnome-themes,
   x11-themes/gtk-engines,
   x11-themes/gtk-engines-murrine,
   x11-themes/hicolor-icon-theme,
   x11-themes/murrine-themes,
   x11-themes/sabayon-artwork-extra,
   x11-themes/sabayon-artwork-gnome,
   x11-themes/sabayon-artwork-ooo,
   x11-themes/sound-theme-freedesktop,
   x11-themes/xcursor-themes,
   x11-wm/compiz,
   x11-wm/fluxbox,
   x11-wm/twm,
krusader, epiphany, scribus, opera, seamonkey, autounmask, autoconf, automake, make, cmake, mirrorselect,lm_sensors, filezilla, simple-ccsm, ccsm, fusion-icon, xchat, evolution, transmission, vuze,vuze-coreplugins, eterm, fish, zsh, evince, guake, avidemux, k9copy, amarok, exaile, kaffeine, totem, vlc, dragonplayer, audacity, audacious-plugins, emerald, file-roller, ark, cheese, cinelerra, kopete, amsn, emesene,pidgin, kmess, gget, kget, gwget, wireshark, frostwire, amule, amuleadu, livestation, mplayer, smplayer, googleearth, nvclock, devede, gimp, inkscape, portato, emerald, fluxbox-styles-fluxmod,fluxbox-syntax,brasero, gnomebaker, mplayer-skins, xine-ui, konversation, eix, cvs, subversion, git, net-misc/curl, aria2, axel, bash-completion, zsh-completion, webmin, miro, www-client/chromium, banshee, rhythmbox, gkrellm, gkrellm-themes, opera, xmms2, bleachbit, songbird-bin, superkaramba, cairo-dock, conky, gnome-mplayer,
nvidia-drivers, nvidia-settings, nvidia-cuda-toolkit, nvidia-cuda-sdk


# Custom shell call to packages add (default is: equo install)
  # custom_packages_add_cmd:

# Custom command for updating repositories (default is: equo update)
  # repositories_update_cmd:

# Determine whether repositories update should be run (if packages_to_add is set)
  # (default is: no), values are: yes, no.
  execute_repositories_update: yes

  # Directories to remove completely (comma separated)
  # paths_to_remove:

# Directories to empty (comma separated)
  # paths_to_empty:


but when i try the command:

Code: Select all
 # molecule sbayongk.spec


i received this error message:

Code: Select all
genteXFCE final # molecule sabayongk.spec
>>  (0/4) [Runner|sabayongk.spec] preparing execution
>>  (1/4) [Runner|sabayongk.spec] executing molecule.specs.plugins.remaster_plugin.IsoUnpackHandler
>> [IsoUnpackHandler|sabayongk.spec] executing pre_run
>> [IsoUnpackHandler|sabayongk.spec] spawning: /bin/mount -o loop,ro -t iso9660 /home/albfneto/Desktop/remast/final/sabayon.iso /var/tmp/moleculeMg4Zpe
>> [IsoUnpackHandler|sabayongk.spec] spawning: /bin/mount -o loop,ro -t squashfs /var/tmp/moleculeMg4Zpe/livecd.squashfs /var/tmp/molecule9Lth3u
mount: /dev/loop1: não foi possível ler o superbloco
>> [IsoUnpackHandler|sabayongk.spec] squash mount failed: 32
>> [IsoUnpackHandler|sabayongk.spec] executing kill


mount: /dev/loop1:can't read the superblock
Last edited by albfneto on Thu Mar 31, 2011 17:13, edited 1 time in total.
Image
ALBERTO FEDERMAN NETO
albfneto
albfneto@fcfrp.usp.br
Favorite Distros: Sabayon, Gentoo, Mandriva and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1293
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: Molecule - squash mount error

Postby lxnay » Thu Mar 31, 2011 15:10

Please post the "dmesg" output after having run molecule.
Image
Join us on IRC (chat.freenode.net #sabayon or WebChat)
Submit bugs to our Bug Tracker
Follow me on Twitter
Add me on Facebook
Add me on Google+
lxnay
Land Owner
 
Posts: 3408
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Re: Molecule - squash mount error

Postby albfneto » Thu Mar 31, 2011 17:12

Thanks. Teh issue was solved. Was a binary error in the downloaded initial sabayon ISO.
running well using a new downloaded daily build image.
Image
ALBERTO FEDERMAN NETO
albfneto
albfneto@fcfrp.usp.br
Favorite Distros: Sabayon, Gentoo, Mandriva and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1293
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil


Return to ISO Testing & Molecule

Who is online

Users browsing this forum: No registered users and 0 guests