dracut module 'dmsquash-live' cannot be found or installed.
by John Florian
I have a script that causes a new initrd to be built for my live images (that have been written to flash drives). This script works great on Fedora 18 but causes the error (see subject) when run a Fedora 20 system - both having been created by livecd-tools. My script calls _LiveImageCreatorBase__write_dracut_conf() and I can see that dmsquash-live is requested:
# cat /etc/dracut.conf
filesystems+="vfat msdos isofs ext4 xfs btrfs "
drivers+="sr_mod sd_mod ide-cd cdrom =ata sym53c8xx aic7xxx ehci_hcd uhci_hcd ohci_hcd usb_storage usbhid firewire-sbp2 firewire-ohci sbp2 ohci1394 ieee1394 mmc_block sdhci sdhci-pci pata_pcmcia mptsas udf virtio_blk virtio_pci virtio_scsi virtio_net virtio_mmio virtio_balloon virtio-rng ums_realtek "
add_dracutmodules+=" dmsquash-live pollcdrom "
hostonly="no"
dracut_rescue_image="no"
Interestingly, the pollcdrom module on that same line is included in the initrd without any problem. Both modules appear to be available for inclusion:
# dracut --list-modules | sort
base
bash
biosdevname
btrfs
busybox
cms
convertfs
crypt
crypt-gpg
crypt-loop
dasd
dasd_mod
dasd_rules
debug
dm
dmraid
dmsquash-live
drm
ecryptfs
fs-lib
fstab-sys
i18n
img-lib
kernel-modules
lvm
mdraid
modsign
multipath
plymouth
pollcdrom
qemu
rescue
resume
rootfs-block
selinux
shutdown
syslog
systemd
systemd-bootchart
system-upgrade
system-upgrade-fedora
terminfo
udev-rules
url-lib
usrmount
virtfs
watchdog
zfcp
zfcp_rules
Does anyone have an easy answer to this one? I'll keep digging deeper but thought someone here might already know what's going on.
--
John Florian
8 years, 6 months
Changes to 'refs/tags/livecd-tools-19.10'
by Brian C. Lane
Tag 'livecd-tools-19.10' created by Brian C. Lane <bcl(a)redhat.com> at 2014-10-27 19:31 +0000
Tag as livecd-tools-19.10
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEVAwUAVE6diRF+jBaO/jp/AQJAYgf/Xt+Aq4UBc0znv5TcdQ41Jql86QYaEYOn
Zz1/5oTGMC+imcj9N/F83sir0H/aoh8pNByg2S693z++Nrn7hLIGD6C3QJSar/04
PMX2qfzMhEsLtmGW4xNw4FCtc+04pMyg9amses9bvgfNc5aUCNzjyaZpzsJNw1wo
RM4POuZBtvHuD+5pjWNr7c264WuUk4i2CD7F+a70aAbsAd1lrSSX5B6MrK1bFPW9
sHTQMrduEJmDzQBG60sCdBQnmC3xdjTmWDV+ORKJftb09PKnulAt+kOUqxC9qpmZ
R85QAruMHe6uDiS+p8gjRYxkj5yg2OnrntduhMRc3RYnaYVTPIuMAA==
=13gA
-----END PGP SIGNATURE-----
Changes since livecd-tools-19.9:
Brian C. Lane (2):
Ignore case when looking for UEFI boot*efi file (#1156380)
Version 19.10
---
Makefile | 2 +-
tools/livecd-iso-to-disk.sh | 24 +++++++++++++++++-------
2 files changed, 18 insertions(+), 8 deletions(-)
---
8 years, 7 months
Branch 'f19-branch' - 2 commits - Makefile tools/livecd-iso-to-disk.sh
by Brian C. Lane
Makefile | 2 +-
tools/livecd-iso-to-disk.sh | 24 +++++++++++++++++-------
2 files changed, 18 insertions(+), 8 deletions(-)
New commits:
commit 25e990776f6f0b2d77779cdb0578c1741d99c826
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Oct 27 12:30:53 2014 -0700
Version 19.10
diff --git a/Makefile b/Makefile
index 26cc65e..ab32ebb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 19.9
+VERSION = 19.10
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
commit 47738e4b080fe157c486b616abc43cac1813cf1b
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Oct 27 11:29:27 2014 -0700
Ignore case when looking for UEFI boot*efi file (#1156380)
The UEFI boot executable on removable devices can be mixed case or all
one case. In F21 it will be all upper case so this makes the check
case-insensitive so that it will work with new and old media.
(cherry picked from commit f1e6445f4e5c2b21d5abebbbd73e8ae0a99fd80f)
(cherry picked from commit a1c98271f03839364a8893559abf35748ca9d73f)
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 3187537..19b9353 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -301,6 +301,16 @@ isdevloop() {
[ x"${1#/dev/loop}" != x"$1" ]
}
+# Return the matching file ignoring case or 1 if no match
+nocase_path() {
+ local ret=0
+ shopt -s nocaseglob
+ [ -e "$1" ] || ret=1
+ echo $1
+ shopt -u nocaseglob
+ return $ret
+}
+
getdisk() {
DEV=$1
@@ -1120,8 +1130,8 @@ if [ -n "$efi" ]; then
# grub.cfg
if [ -e $TGTMNT$EFI_BOOT/grub.cfg ]; then
BOOTCONFIG_EFI=$TGTMNT$EFI_BOOT/grub.cfg
- elif [ -e $TGTMNT$EFI_BOOT/+(BOOT|boot)?*.conf ]; then
- BOOTCONFIG_EFI=$TGTMNT$EFI_BOOT/+(BOOT|boot)?*.conf
+ elif [ -e $(nocase_path "$TGTMNT$EFI_BOOT/boot*.conf") ]; then
+ BOOTCONFIG_EFI=$(nocase_path "$TGTMNT$EFI_BOOT/boot*.conf")
else
echo "Unable to find EFI config file."
exitclean
@@ -1132,10 +1142,10 @@ if [ -n "$efi" ]; then
# the eltorito image, so try to extract it if it is missing
# test for presence of *.efi grub binary
- if [ ! -f $TGTMNT$EFI_BOOT/+(BOOT|boot)?*.efi ]; then
+ if [ ! -f $(nocase_path "$TGTMNT$EFI_BOOT/boot*efi") ]; then
if [ ! -x /usr/bin/dumpet ]; then
echo "No /usr/bin/dumpet tool found. EFI image will not boot."
- echo "Source media is missing grub binary in /EFI/BOOT/*efi"
+ echo "Source media is missing grub binary in /EFI/BOOT/*EFI"
exitclean
else
# dump the eltorito image with dumpet, output is $SRC.1
@@ -1143,10 +1153,10 @@ if [ -n "$efi" ]; then
EFIMNT=$(mktemp -d /media/srctmp.XXXXXX)
mount -o loop "$SRC".1 $EFIMNT
- if [ -f $EFIMNT$EFI_BOOT/+(BOOT|boot)?*.efi ]; then
- cp $EFIMNT$EFI_BOOT/+(BOOT|boot)?*.efi $TGTMNT$EFI_BOOT
+ if [ -f $(nocase_path "$EFIMNT$EFI_BOOT/boot*efi") ]; then
+ cp $(nocase_path "$EFIMNT$EFI_BOOT/boot*efi") $TGTMNT$EFI_BOOT
else
- echo "No BOOT*.efi found in eltorito image. EFI will not boot"
+ echo "No BOOT*.EFI found in eltorito image. EFI will not boot"
umount $EFIMNT
rm "$SRC".1
exitclean
8 years, 7 months
Changes to 'refs/tags/livecd-tools-20.6'
by Brian C. Lane
Tag 'livecd-tools-20.6' created by Brian C. Lane <bcl(a)redhat.com> at 2014-10-27 19:26 +0000
Tag as livecd-tools-20.6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEVAwUAVE6ccRF+jBaO/jp/AQJPnAf+Pz7cFDVOTFvoFss5KDXo97s1Msl7xz3S
z7czjJ7KbdgrYJQyeeCY/0tOowuA0AGkRZBcl09q0gp6NKB9zEcsJcEmSWkJ7etE
oNRDDphavMLRWCm9gxTHGY7r0RR1j9ocLsXGVyaes5NJYbT3jwpQm0r/Wtln85ot
Swr3/4qxsbVTKB9VHbbSgeuBVZk+6Wg4xqTIGijUfx2oIy/TY0tY1/xaaZrKd5dg
fnK8siUO7BPUx6rSCL31xDTEqE02Jh7pecMrRt7D1HtUN4ZnuXiDliKNYLutvtjS
T2GOzLJFu8jM51PK1EJoELpx3jUIsRklf9mOQ6loKBsY7bl6aPZl4A==
=v0L6
-----END PGP SIGNATURE-----
Changes since livecd-tools-20.5:
Brian C. Lane (2):
Ignore case when looking for UEFI boot*efi file (#1156380)
Version 20.6
---
Makefile | 2 +-
tools/livecd-iso-to-disk.sh | 24 +++++++++++++++++-------
2 files changed, 18 insertions(+), 8 deletions(-)
---
8 years, 7 months
Branch 'f20-branch' - 2 commits - Makefile tools/livecd-iso-to-disk.sh
by Brian C. Lane
Makefile | 2 +-
tools/livecd-iso-to-disk.sh | 24 +++++++++++++++++-------
2 files changed, 18 insertions(+), 8 deletions(-)
New commits:
commit 39a35a5f85fe70b693c7aab3e6fc9bc3e8b818c3
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Oct 27 11:40:04 2014 -0700
Version 20.6
diff --git a/Makefile b/Makefile
index b158579..50a0f63 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 20.5
+VERSION = 20.6
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
commit a1c98271f03839364a8893559abf35748ca9d73f
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Oct 27 11:29:27 2014 -0700
Ignore case when looking for UEFI boot*efi file (#1156380)
The UEFI boot executable on removable devices can be mixed case or all
one case. In F21 it will be all upper case so this makes the check
case-insensitive so that it will work with new and old media.
(cherry picked from commit f1e6445f4e5c2b21d5abebbbd73e8ae0a99fd80f)
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 696407c..62b34b1 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -305,6 +305,16 @@ isdevloop() {
[ x"${1#/dev/loop}" != x"$1" ]
}
+# Return the matching file ignoring case or 1 if no match
+nocase_path() {
+ local ret=0
+ shopt -s nocaseglob
+ [ -e "$1" ] || ret=1
+ echo $1
+ shopt -u nocaseglob
+ return $ret
+}
+
getdisk() {
DEV=$1
@@ -1136,8 +1146,8 @@ if [ -n "$efi" ]; then
# grub.cfg
if [ -e $TGTMNT$EFI_BOOT/grub.cfg ]; then
BOOTCONFIG_EFI=$TGTMNT$EFI_BOOT/grub.cfg
- elif [ -e $TGTMNT$EFI_BOOT/+(BOOT|boot)?*.conf ]; then
- BOOTCONFIG_EFI=$TGTMNT$EFI_BOOT/+(BOOT|boot)?*.conf
+ elif [ -e $(nocase_path "$TGTMNT$EFI_BOOT/boot*.conf") ]; then
+ BOOTCONFIG_EFI=$(nocase_path "$TGTMNT$EFI_BOOT/boot*.conf")
else
echo "Unable to find EFI config file."
exitclean
@@ -1148,10 +1158,10 @@ if [ -n "$efi" ]; then
# the eltorito image, so try to extract it if it is missing
# test for presence of *.efi grub binary
- if [ ! -f $TGTMNT$EFI_BOOT/+(BOOT|boot)?*.efi ]; then
+ if [ ! -f $(nocase_path "$TGTMNT$EFI_BOOT/boot*efi") ]; then
if [ ! -x /usr/bin/dumpet ]; then
echo "No /usr/bin/dumpet tool found. EFI image will not boot."
- echo "Source media is missing grub binary in /EFI/BOOT/*efi"
+ echo "Source media is missing grub binary in /EFI/BOOT/*EFI"
exitclean
else
# dump the eltorito image with dumpet, output is $SRC.1
@@ -1159,10 +1169,10 @@ if [ -n "$efi" ]; then
EFIMNT=$(mktemp -d /media/srctmp.XXXXXX)
mount -o loop "$SRC".1 $EFIMNT
- if [ -f $EFIMNT$EFI_BOOT/+(BOOT|boot)?*.efi ]; then
- cp $EFIMNT$EFI_BOOT/+(BOOT|boot)?*.efi $TGTMNT$EFI_BOOT
+ if [ -f $(nocase_path "$EFIMNT$EFI_BOOT/boot*efi") ]; then
+ cp $(nocase_path "$EFIMNT$EFI_BOOT/boot*efi") $TGTMNT$EFI_BOOT
else
- echo "No BOOT*.efi found in eltorito image. EFI will not boot"
+ echo "No BOOT*.EFI found in eltorito image. EFI will not boot"
umount $EFIMNT
rm "$SRC".1
exitclean
8 years, 7 months
Changes to 'refs/tags/livecd-tools-21.3'
by Brian C. Lane
Tag 'livecd-tools-21.3' created by Brian C. Lane <bcl(a)redhat.com> at 2014-10-20 17:01 +0000
Tag as livecd-tools-21.3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEVAwUAVEU/6hF+jBaO/jp/AQLSJAf7BN2F1kqFPjeDpfbl+xQXMluUmFOVvdqk
f9zD2JdQOa4+lgxiEblf5f3pRDkS97u6+q6kHHrCfsR5fZoVDyiTXef8VtwGzqkb
Wcc38Up8h34Rki8x4rtnzd7r1bIGbiVihuyqpY+/QvwsF42CFT8uOuky3DKhfT/i
ehXFqURjRQ4xHbgBxf4BQfYGJUMoDM3lfV9HJDr1N+Ik15ZAFDel3/P0Zmh7N8SU
mnYLicCAh/7VNuIfoVdxX5EC5tOA9hL3AaA0YDvJ3BjaA8O2TlDKQ+Ir8V6aKKWl
xGWWLnhnM0CuC8EZfjRRO98dnydcqu0EiI/hHiDmy2oMGn6N0qbFgQ==
=obZ9
-----END PGP SIGNATURE-----
Changes since livecd-tools-21.2:
Brian C. Lane (4):
Catch Yum errors and print them (#1119906)
Move __fstype into ImageCreator class
mkefiboot now expects all upper case for BOOT*.EFI (#1154138)
Version 21.3
---
Makefile | 2 +-
imgcreate/creator.py | 40 ++++++++++++++++++++--------------------
imgcreate/live.py | 6 +++---
tools/livecd-creator | 3 ++-
4 files changed, 26 insertions(+), 25 deletions(-)
---
8 years, 7 months
Changes to 'refs/tags/livecd-tools-21.4'
by Brian C. Lane
Tag 'livecd-tools-21.4' created by Brian C. Lane <bcl(a)redhat.com> at 2014-10-27 18:36 +0000
Tag as livecd-tools-21.4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEVAwUAVE6QpxF+jBaO/jp/AQKNjwf/cAj3xJO5EdGjzpYX+OnTjMhbfc7gkgOC
OjW7O9egWDZiFnEiKGkfT0+TmcSMmjdapV6MlNkG/lEY1hufCe0tIg6mr8Vf9tL3
Rpd4imfEQrMg8W4sy2h4DLkEDFWFD7heCkJUZmgM/hEGR5dmDYdSsIy+QfNkU/vq
AsDRJih8WHl2ErqBJ7uAXldM2bH9e9nu7lC65akuDrv2II7R6X3CM33aaEdy3pJj
Ul9gER8/JcqSDBJ8ztq6m5TPtLAILoJsONDa6PlkI7dusYclR7fezKJyG/RsJTm5
T59Qgkx6MsqPTvEV7mUaGTIKSShFuMwEyGN9FCWA3ghqq6KcOQWP+w==
=Ju32
-----END PGP SIGNATURE-----
Changes since livecd-tools-21.3:
Brian C. Lane (3):
Preload the libnss_sss library (#1127103)
Ignore case when looking for UEFI boot*efi file (#1156380)
Version 21.4
---
Makefile | 2 +-
tools/livecd-creator | 7 +++++++
tools/livecd-iso-to-disk.sh | 24 +++++++++++++++++-------
3 files changed, 25 insertions(+), 8 deletions(-)
---
8 years, 7 months
Makefile
by Brian C. Lane
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d7738775701457322538fc36f38c8f26b668a513
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Oct 27 11:36:09 2014 -0700
Version 21.4
diff --git a/Makefile b/Makefile
index 8925df1..7227ea4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 21.3
+VERSION = 21.4
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
8 years, 7 months
tools/livecd-iso-to-disk.sh
by Brian C. Lane
tools/livecd-iso-to-disk.sh | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
New commits:
commit f1e6445f4e5c2b21d5abebbbd73e8ae0a99fd80f
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Oct 27 11:29:27 2014 -0700
Ignore case when looking for UEFI boot*efi file (#1156380)
The UEFI boot executable on removable devices can be mixed case or all
one case. In F21 it will be all upper case so this makes the check
case-insensitive so that it will work with new and old media.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index bca3286..cbbdd94 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -305,6 +305,16 @@ isdevloop() {
[ x"${1#/dev/loop}" != x"$1" ]
}
+# Return the matching file ignoring case or 1 if no match
+nocase_path() {
+ local ret=0
+ shopt -s nocaseglob
+ [ -e "$1" ] || ret=1
+ echo $1
+ shopt -u nocaseglob
+ return $ret
+}
+
getdisk() {
DEV=$1
@@ -1136,8 +1146,8 @@ if [ -n "$efi" ]; then
# grub.cfg
if [ -e $TGTMNT$EFI_BOOT/grub.cfg ]; then
BOOTCONFIG_EFI=$TGTMNT$EFI_BOOT/grub.cfg
- elif [ -e $TGTMNT$EFI_BOOT/+(BOOT|boot)?*.conf ]; then
- BOOTCONFIG_EFI=$TGTMNT$EFI_BOOT/+(BOOT|boot)?*.conf
+ elif [ -e $(nocase_path "$TGTMNT$EFI_BOOT/boot*.conf") ]; then
+ BOOTCONFIG_EFI=$(nocase_path "$TGTMNT$EFI_BOOT/boot*.conf")
else
echo "Unable to find EFI config file."
exitclean
@@ -1148,10 +1158,10 @@ if [ -n "$efi" ]; then
# the eltorito image, so try to extract it if it is missing
# test for presence of *.efi grub binary
- if [ ! -f $TGTMNT$EFI_BOOT/+(BOOT|boot)?*.efi ]; then
+ if [ ! -f $(nocase_path "$TGTMNT$EFI_BOOT/boot*efi") ]; then
if [ ! -x /usr/bin/dumpet ]; then
echo "No /usr/bin/dumpet tool found. EFI image will not boot."
- echo "Source media is missing grub binary in /EFI/BOOT/*efi"
+ echo "Source media is missing grub binary in /EFI/BOOT/*EFI"
exitclean
else
# dump the eltorito image with dumpet, output is $SRC.1
@@ -1159,10 +1169,10 @@ if [ -n "$efi" ]; then
EFIMNT=$(mktemp -d /media/srctmp.XXXXXX)
mount -o loop "$SRC".1 $EFIMNT
- if [ -f $EFIMNT$EFI_BOOT/+(BOOT|boot)?*.efi ]; then
- cp $EFIMNT$EFI_BOOT/+(BOOT|boot)?*.efi $TGTMNT$EFI_BOOT
+ if [ -f $(nocase_path "$EFIMNT$EFI_BOOT/boot*efi") ]; then
+ cp $(nocase_path "$EFIMNT$EFI_BOOT/boot*efi") $TGTMNT$EFI_BOOT
else
- echo "No BOOT*.efi found in eltorito image. EFI will not boot"
+ echo "No BOOT*.EFI found in eltorito image. EFI will not boot"
umount $EFIMNT
rm "$SRC".1
exitclean
8 years, 7 months
[PATCH] 'ImageCreator' object has no attribute '_fstype'
by Leo Baltus
Hi,
When calling ImageCreator directly it seems it is missing _fstype.
Attached patch adds this to the ImageCreator class.
steps to reproduce:
creator = imgcreate.ImageCreator(ks, name, None, tmp)
creator.create()
...
File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 235, in _get_fstab
s = "/dev/root / %s defaults,noatime 0 0\n" %(self._fstype)
AttributeError: 'ImageCreator' object has no attribute '_fstype'
This is on Centos Linux 7, using python-imgcreate-20.1-2.el7.x86_64
I hope this patch is suitable for inclusion in future releases.
--
Leo Baltus, internetbeheerder
NPO ICT Internet Services
Bart de Graaffweg 2, 1217 ZL Hilversum
8 years, 7 months