dyoung | 16 May 2013 07:15
Picon
Favicon

[PATCH] dracut systemd cmdline service fix


Kdump test failed since below commits 
dbfaae0e34507d2d1f3c186ffe26af3e8028b9f8

Fedora bug is here:
https://bugzilla.redhat.com/show_bug.cgi?id=963159

The reason is the hooks afterwards need NEWROOT env which
is set in dracut-cmdline.sh.

In this case there's no files under /etc/cmdline.d/ and
/lib/dracut/hooks/cmdline/. Conditions checking failed, so
the cmdline service failed to startup.

Fix this issue by remove the Conditions thus cmdline service
always run if /etc/initrd-release exists.

Signed-off-by: Dave Young <dyoung@...>
---
 modules.d/98systemd/dracut-cmdline.service |    5 -----
 1 file changed, 5 deletions(-)

--- dracut.orig/modules.d/98systemd/dracut-cmdline.service
+++ dracut/modules.d/98systemd/dracut-cmdline.service
 <at>  <at>  -16,11 +16,6  <at>  <at>  Before=systemd-vconsole-setup.service
 After=systemd-journald.socket
 Wants=systemd-journald.socket
 ConditionPathExists=/etc/initrd-release
-ConditionPathExistsGlob=|/etc/cmdline.d/*.conf
-ConditionDirectoryNotEmpty=|/lib/dracut/hooks/cmdline
(Continue reading)

Michael Chapman | 14 May 2013 04:43

Unable to boot with encrypted swap

Hello,

I am using Fedora 19's dracut-027-45.git20130430.

I have what is possibly an unusual configuration: my swap and /home are 
encrypted, however my root filesystem is not. In /etc/crypttab I have 
configured LUKS to take the swap volume's password from /dev/urandom; it 
also has the "swap" flag so that it is mkswap'ed during boot.

The problem I am experiencing is that my initramfs hangs waiting for the 
swap device to appear.

As of commit dd5875499ece9dbc90e10eafd0073ee15d0c86a4, it looks like 
Dracut adds discovered swap partitions to the list of devices to wait for. 
However since my root filesystem itself is not encrypted, no crypto 
components are actually installed into the initramfs. The end result is 
that this volume never appears, and so the initramfs never continues on.

I am not sure of the background behind this commit. Is there a real need 
to wait for swap during initramfs? Won't this just be picked up later by 
systemd?

Should Dracut just skip swap partitions that are encrypted? Or should it 
detect the existence of an encrypted swap partition and treat it as it 
would an encrypted root?

For now, I've had to revert that commit on my system for it to be able to 
boot.

Regards,
(Continue reading)

Kamil Rytarowski | 11 May 2013 17:14
Picon
Favicon

[PATCH] Introduce stricter type-correctness

Hello,

I'm attaching a patch introducing stricter type-correctness.
Most of the changes are fixing issues with operating over signed with 
unsigned types. One of the changes aims to fix an insecure passing of a 
character* buffer through a parameter.

Regards,
Kamil Rytarowski | 11 May 2013 15:09
Picon
Favicon

Patches against the dracut git version

Hello,

I'm attaching the following patches against the current development 
version of dracut:
0001-Fix-parsing-command-line-arguments.patch
0002-Use-consistiently-termination-code-macros.patch
0003-Always-check-the-return-number-of-asprintf.patch
0004-Fix-memory-leak.patch

Please double check and apply them.

Regards,
Dennis Schridde | 9 May 2013 13:18
Picon

PROBLEM: Errors in instmods_1 are ignored

Hello!

I found a problem with add_drivers / module installation.

Current behaviour:
When instmods_1 cannot find a module (for example), it returns an error (1). 
It's caller, instmods, aborts the installation of any further modules and also 
returns an error (1). dracut then ignores that error and does not even output 
a warning.

Expected behaviour:
Variant 1: instmods outputs a warning when instmods_1 returns an error, but 
continues to install the other modules.
Variant 2: dracut outputs an error message, including the module that failed, 
and aborts the whole operation.

See also: https://github.com/haraldh/dracut/issues/8

Best regards,
Dennis
Baoquan He | 9 May 2013 10:38
Picon
Favicon

[Patch] 01fips/module-setup.sh: add libssl.so.10 to make kdump work with fips mode

FIPS can work well in 1st kernel, but failed in kdump kernel. the
libssl.so.10 and related hmac file are needed. Now add it and it
works.

Signed-off-by: Baoquan He <bhe@...>
---
 modules.d/01fips/module-setup.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules.d/01fips/module-setup.sh b/modules.d/01fips/module-setup.sh
index a7f5be8..6013318 100755
--- a/modules.d/01fips/module-setup.sh
+++ b/modules.d/01fips/module-setup.sh
 <at>  <at>  -38,7 +38,7  <at>  <at>  install() {

     inst_libdir_file libsoftokn3.so libsoftokn3.so \
         libsoftokn3.chk libfreebl3.so libfreebl3.chk \
-        libssl.so 'hmaccalc/sha512hmac.hmac'
+        libssl.so 'hmaccalc/sha512hmac.hmac' libssl.so.10

     dracut_install -o prelink
 }
--

-- 
1.7.1

Ben Hutchings | 6 May 2013 03:55
Picon

initramfs-tools 0.112 release

initramfs-tools 0.112 is functionally the same as 0.111, but has been
uploaded to Debian unstable.

Ben.

--

-- 
Ben Hutchings
If God had intended Man to program,
we'd have been born with serial I/O ports.
Colin Guthrie | 3 May 2013 18:16
Gravatar

[Dracut PATCH] usrmount: Fix miss-detection of btrfs subvolumes.

This causes the root FS options to be incorrectly applied to to /usr
In some cases this can cause boot failure e.g. due to and XFS /usr
not supporting the 'acl' option from the ext4 root FS.

https://bugs.mageia.org/show_bug.cgi?id=9884
---
 modules.d/98usrmount/mount-usr.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules.d/98usrmount/mount-usr.sh b/modules.d/98usrmount/mount-usr.sh
index a4a66ae..de7dcc2 100755
--- a/modules.d/98usrmount/mount-usr.sh
+++ b/modules.d/98usrmount/mount-usr.sh
 <at>  <at>  -61,14 +61,14  <at>  <at>  mount_usr()
                 LABEL=*)
                     _dev="$(echo $_dev | sed 's,/,\\x2f,g')"
                     _dev="/dev/disk/by-label/${_dev#LABEL=}"
-		    ;;
+                    ;;
                 UUID=*)
                     _dev="${_dev#block:}"
                     _dev="/dev/disk/by-uuid/${_dev#UUID=}"
                     ;;
             esac
             if strstr "$_opts" "subvol=" && \
-                [ "${root#block:}" -ef $_dev ]
+                [ "${root#block:}" -ef $_dev ] && \
                 [ -n "$rflags" ]; then
                 # for btrfs subvolumes we have to mount /usr with the same rflags
                 rflags=$(filtersubvol "$rflags")
(Continue reading)

WANG Chao | 26 Apr 2013 09:16
Picon
Favicon

[PATCH] _emergency_shell: Show current working directory correctly in shell.

When dropped to emergency shell, for example, use rd.break=pre-pivot,
the PS1 won't correctly show current directory we're in:

pre-pivot:/# cd /sysroot/
pre-pivot:/#
(still shows "/")

Let's take a look at PS1 variable:

(I'm adding prefix/suffix 'x' to make it clear):
pre-pivot:/# echo x${PS1}x
xpre-pivot:/# x
(PS1 isn't dynamic)

Regarding the current dracut code, it should be:

pre-pivot:/# cd /sysroot/etc
pre-pivot:/sysroot/etc#

With this patch:

pre-pivot:/# echo x${PS1}x
xpre-pivot:${PWD}# x
(Now PS1 is dynamic, it will show the directory correctly)

I tested for both normal boot and kdump boot.

Signed-off-by: WANG Chao <chaowang@...>
---
 modules.d/99base/dracut-lib.sh | 2 +-
(Continue reading)

Ben Hutchings | 17 Apr 2013 03:54
Picon

initramfs-tools 0.109.1 release

This has the single fix for missing HID drivers, which I considered to
be release-critical for wheezy:

Ben Hutchings (2):
      hook-functions: Include more HID drivers in base
      Releasing version 0.109.1.

This comes from a new wheezy branch.  I also committed the fix to the
master branch.

As this is my first attempt to release initramfs-tools, and I didn't
discuss it beforehand, I've uploaded to the DELAYED queue with a delay
of 2 days so it can be cancelled or overridden if necessary.

Ben.

--

-- 
Ben Hutchings
The first rule of tautology club is the first rule of tautology club.
Dennis Schridde | 11 Apr 2013 17:41
Picon

[PATCH] [40network] Fix ifup.sh to always execute initqueue/online hook after bringing up an interface

---
 modules.d/40network/ifup.sh | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
index 526251f..13be22a 100755
--- a/modules.d/40network/ifup.sh
+++ b/modules.d/40network/ifup.sh
 <at>  <at>  -307,19 +307,13  <at>  <at>  for p in $(getargs ip=); do
             do_static ;;
     esac

-    case $autoconf in
-        dhcp|on|any|dhcp6)
-            ;;
-        *)
-            if [ $? -eq 0 ]; then
-                setup_net $netif
-                source_hook initqueue/online $netif
-                if [ -z "$manualup" ]; then
-                    /sbin/netroot $netif
-                fi
-            fi
-            ;;
-    esac
+    if [ $? -eq 0 ]; then
+        setup_net $netif
+        source_hook initqueue/online $netif
+        if [ -z "$manualup" ]; then
+            /sbin/netroot $netif
(Continue reading)


Gmane