Bug 22214 - lxc for mageia (basesystem) does not install shadow-utils, which is needed for root password
Summary: lxc for mageia (basesystem) does not install shadow-utils, which is needed fo...
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2017-12-17 16:05 CET by Marc Krämer
Modified: 2020-07-31 13:06 CEST (History)
12 users (show)

See Also:
Source RPM: basesystem-6-0.4.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Marc Krämer 2017-12-17 16:05:23 CET
after install of mageia via lxc (cauldron) it tells you the rootpassword is....

but this password is never set, since the call
echo "root:$root_password" | chroot "$rootfs_path" chpasswd

fails. The remote system doesn't have "chpasswd", so there is no (correct) root password set.
Comment 1 Marc Krämer 2017-12-17 16:17:40 CET
sorry, this is not correct:
/etc/securetty is missing the entry console to login directly after the installation
Comment 2 Marja Van Waes 2017-12-18 07:44:38 CET
Assigning to the kernel maintainers, because lxc has
Group: System/Kernel and hardware

CC'ing a bunch of committers

Assignee: bugsquad => kernel
CC: (none) => cjw, dan, geiger.david68210, luigiwalser, mageia, mageia, marja11, olav, pterjan, thierry.vignaud

Marc Krämer 2018-07-03 16:57:41 CEST

Source RPM: lxc-2.0.8-1.mga6.src.rpm => basesystem-6-0.4.mga6.src.rpm

Comment 3 Marc Krämer 2018-07-03 16:59:05 CEST
basesystem-uml does not require setup. So some files are missing in /etc .
Comment 4 Thierry Vignaud 2018-07-04 05:17:47 CEST
Err why do you use basesystem-uml????
You should use  basesystem-minimal

Keywords: (none) => NEEDINFO

Comment 5 Marc Krämer 2018-07-04 09:02:53 CEST
from lxc-package in SOURCES/add-mga-support.patch to make mageia available to lxc:

PKG_LIST="basesystem-uml locales locales-en"
[..]
echo "Downloading/installing Mageia minimal system ..."
/usr/sbin/urpmi --no-suggests --ignorearch --root $INSTALL_ROOT --urpmi-root $INSTALL_ROOT --auto $PKG_LIST
Comment 6 Marc Krämer 2018-07-04 10:34:06 CEST
If it is intended to use basesystem-minimal instead of -uml this package instead, I can do the upddate & packaging.
Comment 7 Thomas Backlund 2018-07-04 10:36:41 CEST
basesystem-uml should require basesystem-minimal

CC: (none) => tmb

Comment 8 Marc Krämer 2018-07-04 10:38:49 CEST
ok, thanks for the info, I'll do the update.
Comment 9 Ingvar Klimenkov 2019-02-24 07:30:12 CET
I use  basesystem-minimal  end error appears when updating :

# urpmi  shadow-utils
    http://magie.remi.lu/distrib/7/x86_64/media/core/release/shadow-utils-4.6-1.mga7.x86_64.rpm
installing shadow-utils-4.6-1.mga7.x86_64.rpm from /var/cache/urpmi/rpms                                                                                                      
Preparing...                     ############################################################################################################################################
      1/1: shadow-utils          ############################################################################################################################################
error: unpacking of archive failed on file /usr/bin/newgidmap;5c723536: cpio: cap_set_file failed - Inappropriate ioctl for device
ERROR: 'unpack' failed for shadow-utils-2:4.6-1.mga7.x86_64
error: shadow-utils-2:4.6-1.mga7.x86_64: install failed
error: shadow-utils-2:4.4-6.mga7.x86_64: erase skipped

CC: (none) => ingvar45

Comment 10 David GEIGER 2020-02-11 12:28:40 CET
@Marc Krämer:

What is the status now of this bug? fixed? not fixed? what should we do?
Comment 11 Marja Van Waes 2020-07-31 13:06:06 CEST
(In reply to David GEIGER from comment #10)
> @Marc Krämer:
> 
> What is the status now of this bug? fixed? not fixed? what should we do?

Almost half a year later, no reply, so closing as OLD

Marc, if this issue is still valid in Mageia 7 and/or 8-cauldron, then please reopen this report while changing "Version:" appropriately.

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.