From: "Антон Мидюков" <midyukov-anton@ya.ru> To: devel@lists.altlinux.org, Distributions development <devel-distro@lists.altlinux.org> Subject: Re: [devel-distro] [devel] Невозможно создать пользователя при сборке rootfs на хосте с Сизифом Date: Mon, 24 Jun 2024 19:19:45 +0700 Message-ID: <79f02d1e-5e3b-4d33-8ed6-bccb2c51c9fa@ya.ru> (raw) In-Reply-To: <20240624151157.54b90345@sem-nb2> 24.06.2024 19:11, Mikhail Efremov пишет: > On Mon, 24 Jun 2024 15:05:52 +0300 Mikhail Efremov wrote: >> On Sat, 22 Jun 2024 17:28:41 +0700 Антон Мидюков wrote: >>> Здравствуйте >>> >>> Может быть кто-нибудь сможет подсказать, в чём может быть дело. >>> Проблема такая. Собираю при помощи 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 при сборке? >> >> Непонятно как это воспроизвести, на сборке образа отлаживать неудобно >> все-таки. > > А профиль, на котором воспроизводится, есть где-нибудь? Я попробую > разобраться что там происходит. > Моя ветка next: https://git.altlinux.org/people/antohami/packages/?p=mkimage-profiles.git;a=shortlog;h=refs/heads/next Собирать: make DEBUG=1 BRANCH= vm/alt-mobile-phosh-un-def.img На хосте должен быть Сизиф, собираем также на Сизифе. Сборка должна прерваться на выполнении скрипта features.in/deflogin/rootfs/image-scripts.d/50-users >> Как workaround можно попробовать удалить /etc/gshadow перед useradd, >> тогда он вообще не должен пытаться открывать файл. > >>> Проблема только на хостах с Сизифом. Если на хосте p10, то пользователь успешно создаётся при сборке. >>> Также, если убрать из образа gnome-software и gnome-control-center, то пользователь создаётся успешно и при сборке на хосте с Сизифом. >>> Но, если в минимальный образ vm/systemd.img добавить эти два пакета, проблема не воспроизводится, пользователь при сборке на хосте с Сизифом. >>> >>> >> >> > > > > _______________________________________________ > Devel mailing list > Devel@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/devel -- С уважением, Антон Мидюков <antohami@altlinux.org>
prev parent reply other threads:[~2024-06-24 12:19 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-06-22 10:28 [devel-distro] " Антон Мидюков 2024-06-24 12:19 ` Антон Мидюков [this message]
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=79f02d1e-5e3b-4d33-8ed6-bccb2c51c9fa@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