[Buildroot] [PATCH v4 1/1] package/shadow: new package

stephane gonauer stephane.gonauer at 6wind.com
Wed Mar 1 07:43:01 UTC 2023


Hi Raphael,

Testing with qemu is pretty easy
Here are the step I follow :

git clone https://github.com/buildroot/buildroot.git
cd buildroot
git checkout -t next
make qemu_x86_64_defconfig
make menuconfig <= to add SHADOW/LINUX_PAM etc
make -j8
./output/images/start-qemu.sh

The script starts a vm with a serial console and it is part of the
buildroot repo.

Then either I can login (root without password) or not

Stéphane

Le mar. 28 févr. 2023 à 21:38, Raphael Pavlidis
<raphael.pavlidis at gmail.com> a écrit :
>
> Hi Stephane,
>
> On 28.02.23 18:10, stephane gonauer wrote:
> > Hi,
> >
> > If my previous email is not clear :
> >
> > - qemu_x86_64_defconfig + BR2_PACKAGE_SHADOW -> works
> > - qemu_x86_64_defconfig + BR2_PACKAGE_SHADOW  + BR2_PACKAGE_LINUX_PAM
> > -> fails and there is no "system-auth" file anywhere in the build
> > - qemu_x86_64_defconfig + BR2_PACKAGE_SHADOW  + BR2_PACKAGE_LINUX_PAM
> > + BR2_INIT_SYSTEMD-> fails, system-auth is not in /etc/pam.d in the
> > target folder. I don't know what happen at runtime (because I cannot
> > login)  in that case I also find
> > target/usr/share/factory/etc/pam.d/system-auth
>
> Thanks for the clarification.
>
> >
> > Do you think with/without systemd case should be fixed differently ?
> > In any case the missing file seems to be /etc/pam.d/system-auth.
>
> Yes, the file is present with systemd, but it is not copied during boot
> by systemd-tmpfiles.service.
>
> >
> > Stéphane
> >
> [SNIP]
>
> Would you like to tell me, which command you are using with QEMU? I
> would like to check, what happened (if I find the time to).
>
> Thanks,
> Raphael Pavlidis



More information about the buildroot mailing list