ALT Linux Distributions development
 help / color / mirror / Atom feed
From: "Антон Мидюков" <midyukov-anton@ya.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>,
	Distributions development <devel-distro@lists.altlinux.org>
Subject: [devel-distro] Невозможно создать пользователя при сборке rootfs на хосте с Сизифом
Date: Sat, 22 Jun 2024 17:28:41 +0700
Message-ID: <665d9d38-4dd7-4e19-9e0e-662edecbe4e7@ya.ru> (raw)

Здравствуйте

Может быть кто-нибудь сможет подсказать, в чём может быть дело.
Проблема такая. Собираю при помощи mkimage-profiles rootfs vm/alt-mobile-phosh-un-def.img
Пользователь altlinux не создаётся, ошибка такая:

useradd: cannot open /etc/gshadow
<86>Jun 22 09:33:12 useradd[129602]: failed adding user 'altlinux', exit code: 10
*** failed to add user 'altlinux'
chpasswd: (user altlinux) pam_chauthtok() failed, error:
User not known to the underlying authentication module
chpasswd: (line 1, user altlinux) password not changed
<85>Jun 22 09:33:12 chpasswd[129605]: pam_tcb(chpasswd:chauthtok): Unable to find user in the selected database
mki-image-scripts: /tmp/.private/antohami/mkimage-profiles.build.E5scYkK/image-scripts.d/50-users: unable to run script.

Если сделать
hsh-shell --rooter build/.work/

и выполнить, как в скрипте команду:

useradd -m altlinux

то пользователь успешно создаётся.

Почему может не быть доступа к /etc/gshadow при сборке?

Проблема только на хостах с Сизифом. Если на хосте p10, то пользователь успешно создаётся при сборке.
Также, если убрать из образа gnome-software и gnome-control-center, то пользователь создаётся успешно и при сборке на хосте с Сизифом.
Но, если в минимальный образ vm/systemd.img добавить эти два пакета, проблема не воспроизводится, пользователь при сборке на хосте с Сизифом.


-- 
С уважением, Антон Мидюков <antohami@altlinux.org>


             reply	other threads:[~2024-06-22 10:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-22 10:28 Антон Мидюков [this message]
2024-06-24 12:19     ` [devel-distro] [devel] " Антон Мидюков

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=665d9d38-4dd7-4e19-9e0e-662edecbe4e7@ya.ru \
    --to=midyukov-anton@ya.ru \
    --cc=devel-distro@lists.altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git