Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651998 - sys-apps/openrc-0.34.11 openrc calls dmcrypt before keymaps
Summary: sys-apps/openrc-0.34.11 openrc calls dmcrypt before keymaps
Status: RESOLVED DUPLICATE of bug 446018
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-30 17:17 UTC by cazzantonio
Modified: 2018-11-06 01:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cazzantonio 2018-03-30 17:17:34 UTC
I'm using
sys-apps/openrc-0.34.11
sys-fs/cryptsetup-1.7.5

Openrc calls /etc/init.d/dmcrypt before /etc/init.d/keymaps, so if you have a keyboard layout which is not "us" you will experience some nuisance. Also this reduces the amount of characters that you can use to standard ASCII.

Keymaps should be run before dmcrypt, and of course before localmount, however the initscript explicitly requires localmount
Comment 1 William Hubbs gentoo-dev 2018-05-08 16:29:20 UTC
I found several linux boot services which had "need localmount" in
depend only because of separate /usr.
This has been removed since anyone using separate /usr on Linux should
be using an initramfs by this point.
This will be affective in OpenRC 0.36.

https://github.com/openrc/openrc/commit/a3d0e293
Comment 2 cazzantonio 2018-09-24 20:06:39 UTC
I just updated to openrc-0.38.2 and the problem is still there

It starts to be an annoying problem, since it has been quite some time that this issue is present.
Please consider that there are people which use non-US keyboards out there

There is also this old bug that seems related to this:
https://bugs.gentoo.org/446018
Comment 3 Larry the Git Cow gentoo-dev 2018-11-02 18:21:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17664fa2cfb06baec8074fc39c0f71a039db7cd3

commit 17664fa2cfb06baec8074fc39c0f71a039db7cd3
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2018-11-02 18:17:40 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2018-11-02 18:21:02 +0000

    sys-fs/cryptsetup: 2.0.5-r1 bump
    
    Closes: https://bugs.gentoo.org/601448
    Closes: https://bugs.gentoo.org/651998
    Package-Manager: Portage-2.3.49, Repoman-2.3.11
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 sys-fs/cryptsetup/cryptsetup-2.0.5-r1.ebuild | 130 ++++++++++
 sys-fs/cryptsetup/files/2.0.5-dmcrypt.confd  | 115 +++++++++
 sys-fs/cryptsetup/files/2.0.5-dmcrypt.rc     | 340 +++++++++++++++++++++++++++
 3 files changed, 585 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2018-11-05 15:48:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46c8f4f8a420a77a9649318d3d9c6fef782afa19

commit 46c8f4f8a420a77a9649318d3d9c6fef782afa19
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-11-05 15:46:06 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-11-05 15:46:06 +0000

    profiles: package.mask  sys-fs/cryptsetup-2.0.5-r1 dependency loop
    
    The change in the OpenRC init script, the only change to the revision,
    causes a dependency loop where the system is unusable.
    
    Masked until it can be resolved
    
    Signed-off-by: Brian Evans <grknight@gentoo.org>
    Bug: https://bugs.gentoo.org/651998

 profiles/package.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2018-11-05 16:13:47 UTC
Here's rc.log with changed dmcrypt runscript, e.g. with "after keymaps" line:

> rc sysinit logging started at Mon Nov  5 16:31:49 2018
> 
> 
>    OpenRC 0.39.1 is starting up Gentoo Linux (x86_64)
> 
>  * /proc is already mounted
>  * Mounting /run ...
>  * /run/openrc: creating directory
>  * /run/lock: creating directory
>  * /run/lock: correcting owner
>  * Caching service dependencies ...
>  [ ok ]
>  * Mounting debug filesystem ...
>  [ ok ]
>  * Mounting config filesystem ...
>  [ ok ]
>  * Mounting fuse control filesystem ...
>  [ ok ]
>  * Mounting persistent storage (pstore) filesystem ...
>  [ ok ]
>  * Mounting cgroup filesystem ...
>  [ ok ]
>  * Remounting devtmpfs on /dev ...
>  [ ok ]
>  * Mounting /dev/mqueue ...
>  [ ok ]
>  * Mounting /dev/shm ...
>  [ ok ]
>  * Creating list of required static device nodes for the current kernel ...
>  [ ok ]
>  * Setting up tmpfiles.d entries for /dev ...
>  [ ok ]
>  * Starting udev ...
> starting version 239
>  [ ok ]
>  * Generating a rule to create a /dev/root symlink ...
>  [ ok ]
>  * Populating /dev with existing devices through uevents ...
>  [ ok ]
> 
> rc sysinit logging stopped at Mon Nov  5 16:31:49 2018
> 
> 
> rc boot logging started at Mon Nov  5 16:31:49 2018
> 
>  * Setting system clock using the hardware clock [UTC] ...
>  [ ok ]
>  * The binfmt-misc module needs to be loaded by the modules service or built in.
>  * Mounting misc binary format filesystem ...
>  [ ok ]
>  * Loading custom binary format handlers ...
>  [ ok ]
>  * ERROR: cannot start root as fsck would not start
>  * Setting terminal encoding [UTF-8] ...
>  [ ok ]
>  * Setting keyboard mode [UTF-8] ...
>  [ ok ]
>  * Loading key mappings [us] ...
>  [ ok ]
>  * ERROR: cannot start dmcrypt as fsck would not start
>  * /run/lvm: creating directory
>  * Starting lvmetad ...
>  [ ok ]
>  * Setting up the Logical Volume Manager ...
>  [ ok ]
>  * Checking local filesystems  ...
> root: clean, 798811/3060000 files, 7082933/12286976 blocks
> Boot: clean, 90/32768 files, 76337/131072 blocks
> portage: clean, 162877/524288 files, 787529/2097152 blocks
> /sbin/fsck.xfs: UUID=ecd56246-b630-4691-9b3a-6dd7ee0d3272 does not exist
> /sbin/fsck.xfs: UUID=a3e76189-eaad-40c5-80a0-eab6e82adc51 does not exist
>  * Operational error
>  [ !! ]
>  * ERROR: cannot start mtab as root would not start
>  * Activating swap devices ...
>  [ ok ]
>  * Mounting local filesystems ...
> mount: /usr/src: can't find UUID=ecd56246-b630-4691-9b3a-6dd7ee0d3272.
> mount: /usr/portage/distfiles: can't find UUID=a3e76189-eaad-40c5-80a0-eab6e82adc51.
>  * Some local filesystem failed to mount
>  [ !! ]
>  * Configuring kernel parameters ...
> * Applying /usr/lib/sysctl.d/60-libvirtd.conf ...
> fs.aio-max-nr = 1048576
> * Applying /etc/sysctl.d/foo.conf ...
> net.ipv6.conf.all.accept_ra = 1
> * Applying /etc/sysctl.conf ...
> net.ipv6.conf.all.accept_ra = 0
> net.ipv6.conf.default.accept_ra = 0
> kernel.core_pattern = /var/tmp/coredumps/%e.%p.%t
>  [ ok ]
>  * / is not writable; unable to clean up underlying /run
>  * Creating user login records ...
>  [ ok ]
>  * Setting hostname to localhost  ...
>  [ ok ]
>  * Bringing up network interface lo ...
>  [ ok ]
>  * Setting up tmpfiles.d entries ...
>  [ ok ]
>  * Checking "/var/lib/shorewall/firewall" ...
>  [ ok ]
>  * Initializing "shorewall" ...
> touch: cannot touch '/var/log/shorewall-init.log': Read-only file system
> chmod: changing permissions of '/var/log/shorewall-init.log': Read-only file system
> /var/lib/shorewall/firewall: line 107: /var/log/shorewall-init.log: Read-only file system
> /var/lib/shorewall/firewall: line 1779: /var/lib/shorewall/state: Read-only file system
> /var/lib/shorewall/firewall: line 91: /var/log/shorewall-init.log: Read-only file system
> /var/lib/shorewall/firewall: line 91: /var/log/shorewall-init.log: Read-only file system
> /var/lib/shorewall/firewall: line 91: /var/log/shorewall-init.log: Read-only file system
> /var/lib/shorewall/firewall: line 2679: /var/lib/shorewall/.iptables-restore-stop-input: Read-only file system
>  [ !! ]
>  * ERROR: shorewall-init failed to start
>  * Initializing random number generator ...
>  [ ok ]
> rm: cannot remove '/var/lib/misc/random-seed': Read-only file system
> 
> rc boot logging stopped at Mon Nov  5 16:31:51 2018
> 
> 
> rc default logging started at Mon Nov  5 16:31:51 2018
> 
>  * Remounting root filesystem read/write ...
>  [ ok ]
>  * Remounting filesystems ...
>  [ ok ]
>  * Setting up dm-crypt mappings ...
>  *   dataVault using:   open /dev/sdb1 dataVault ...
>  [ ok ]
>  [ ok ]
>  * Updating /etc/mtab ...
>  * Creating mtab symbolic link
>  [ ok ]
>  * Checking rsyslogd's configuration ...
>  [ ok ]
>  * Starting rsyslog ...
>  [ ok ]
>  * Starting fcron ...
>  [ ok ]
>  * Starting haveged ...
> haveged: listening socket at 3
>  [ ok ]
>  * This is a boot service, which can only be started at boot.
>  * If you want to get your shorewall-based firewall into the same safe boot state again, run
>  * 
>  *   /etc/init.d/shorewall stop
>  * 
>  * Yes, "stop" and not start.
>  * 
>  * ERROR: shorewall-init failed to start
>  * Bringing up interface lan0
>  *   Caching network module dependencies
>  *   config_lan0 not specified; defaulting to DHCP
>  *   dhcp ...
>  *     Running dhcpcd ...
> *** REMOVED ***
> lan0: *** REMOVED ***
> forked to background, child pid 4781
> dhcp6_listen: Address already in use
>  [ ok ]
>  *     received address 
>  [ ok ]
>  *   Waiting for tentative IPv6 addresses to complete DAD (5 seconds) .
>  [ ok ]
>  * Mounting network filesystems ...
>  [ ok ]
>  * Starting ntpd ...
>  [ ok ]
>  * Starting postfix  ...
>  [ ok ]
>  * Starting shorewall ...
>  [ ok ]
>  * Starting sshd ...
>  [ ok ]
>  * Starting vnStat daemon ...
>  [ ok ]
>  * Starting local ...
>  *   Executing "/etc/local.d/10-disable-console-blanking.start" ...
>  [ ok ]
>  [ ok ]
> 
> rc default logging stopped at Mon Nov  5 16:32:02 2018
> 

Normal (working) boot with previous runscript, e.g. without "after keymaps" or just 'rc_after="!keymaps"':

> 
> rc sysinit logging started at Mon Nov  5 16:36:39 2018
> 
> 
>    OpenRC 0.39.1 is starting up Gentoo Linux (x86_64)
> 
>  * /proc is already mounted
>  * Mounting /run ...
>  * /run/openrc: creating directory
>  * /run/lock: creating directory
>  * /run/lock: correcting owner
>  * Caching service dependencies ...
>  [ ok ]
>  * Mounting debug filesystem ...
>  [ ok ]
>  * Mounting config filesystem ...
>  [ ok ]
>  * Mounting fuse control filesystem ...
>  [ ok ]
>  * Mounting persistent storage (pstore) filesystem ...
>  [ ok ]
>  * Mounting cgroup filesystem ...
>  [ ok ]
>  * Remounting devtmpfs on /dev ...
>  [ ok ]
>  * Mounting /dev/mqueue ...
>  [ ok ]
>  * Mounting /dev/shm ...
>  [ ok ]
>  * Creating list of required static device nodes for the current kernel ...
>  [ ok ]
>  * Setting up tmpfiles.d entries for /dev ...
>  [ ok ]
>  * Starting udev ...
> starting version 239
>  [ ok ]
>  * Generating a rule to create a /dev/root symlink ...
>  [ ok ]
>  * Populating /dev with existing devices through uevents ...
>  [ ok ]
> 
> rc sysinit logging stopped at Mon Nov  5 16:36:39 2018
> 
> 
> rc boot logging started at Mon Nov  5 16:36:39 2018
> 
>  * Setting system clock using the hardware clock [UTC] ...
>  [ ok ]
>  * The binfmt-misc module needs to be loaded by the modules service or built in.
>  * Mounting misc binary format filesystem ...
>  [ ok ]
>  * Loading custom binary format handlers ...
>  [ ok ]
>  * Setting up dm-crypt mappings ...
>  *   dataVault using:   open /dev/sdb1 dataVault ...
>  [ ok ]
>  [ ok ]
>  * /run/lvm: creating directory
>  * Starting lvmetad ...
>  [ ok ]
>  * Setting up the Logical Volume Manager ...
>  [ ok ]
>  * Checking local filesystems  ...
> root: clean, 798811/3060000 files, 7083019/12286976 blocks
> Boot: clean, 90/32768 files, 76337/131072 blocks
> portage: clean, 162877/524288 files, 787529/2097152 blocks
> /sbin/fsck.xfs: XFS file system.
> /sbin/fsck.xfs: XFS file system.
>  [ ok ]
>  * Remounting root filesystem read/write ...
>  [ ok ]
>  * Remounting filesystems ...
>  [ ok ]
>  * Updating /etc/mtab ...
>  * Creating mtab symbolic link
>  [ ok ]
>  * Activating swap devices ...
>  [ ok ]
>  * Mounting local filesystems ...
>  [ ok ]
>  * Configuring kernel parameters ...
> * Applying /usr/lib/sysctl.d/60-libvirtd.conf ...
> fs.aio-max-nr = 1048576
> * Applying /etc/sysctl.d/foo.conf ...
> net.ipv6.conf.all.accept_ra = 1
> * Applying /etc/sysctl.conf ...
> net.ipv6.conf.all.accept_ra = 0
> net.ipv6.conf.default.accept_ra = 0
> kernel.core_pattern = /var/tmp/coredumps/%e.%p.%t
>  [ ok ]
>  * Creating user login records ...
>  [ ok ]
>  * Wiping /tmp directory ...
>  [ ok ]
>  * Setting hostname to localhost  ...
>  [ ok ]
>  * Setting terminal encoding [UTF-8] ...
>  [ ok ]
>  * Setting keyboard mode [UTF-8] ...
>  [ ok ]
>  * Loading key mappings [us] ...
>  [ ok ]
>  * Bringing up network interface lo ...
>  [ ok ]
>  * Setting up tmpfiles.d entries ...
>  [ ok ]
>  * Checking "/var/lib/shorewall/firewall" ...
>  [ ok ]
>  * Initializing "shorewall" ...
>  [ ok ]
>  * Initializing random number generator ...
>  [ ok ]
> 
> rc boot logging stopped at Mon Nov  5 16:36:43 2018
> 
> 
> rc default logging started at Mon Nov  5 16:36:43 2018
> 
>  * Checking rsyslogd's configuration ...
>  [ ok ]
>  * Starting rsyslog ...
>  [ ok ]
>  * Starting fcron ...
>  [ ok ]
>  * Starting haveged ...
> haveged: listening socket at 3
>  [ ok ]
>  * Bringing up interface lan0
>  *   Caching network module dependencies
>  *   config_lan0 not specified; defaulting to DHCP
>  *   dhcp ...
>  *     Running dhcpcd ...
> *** REMOVED ***
> lan0: *** REMOVED ***
> forked to background, child pid 4849
> dhcp6_listen: Address already in use
>  [ ok ]
>  *     received address 
>  [ ok ]
>  *   Waiting for tentative IPv6 addresses to complete DAD (5 seconds) .
>  [ ok ]
>  * Mounting network filesystems ...
>  [ ok ]
>  * Starting ntpd ...
>  [ ok ]
>  * Starting postfix  ...
>  [ ok ]
>  * Starting shorewall ...
>  [ ok ]
>  * Starting sshd ...
>  [ ok ]
>  * Starting vnStat daemon ...
>  [ ok ]
>  * Starting local ...
>  *   Executing "/etc/local.d/10-disable-console-blanking.start" ...
>  [ ok ]
>  [ ok ]
> 
> rc default logging stopped at Mon Nov  5 16:36:52 2018
> 
>
Comment 6 Brian Evans (RETIRED) gentoo-dev 2018-11-06 01:14:57 UTC

*** This bug has been marked as a duplicate of bug 446018 ***