[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#774332: chfn and fakechroot



Le vendredi 20 février à 19h 02mn 31s (+0100), John Paul Adrian Glaubitz a écrit :
> Hi!
> 
> I am running into the exact same problem when trying to create a
> unstable chroot using debootstrap on one of our sh4 machines
> using the following command line:
> 
> debootstrap --no-check-gpg --include=apt,nano,aptitude,vim unstable
> unstable-sh4-20150220-3 ftp://ftp.debian-ports.org/debian
> 
> With the error message being:
> 
> Setting up systemd (215-12) ...
> Initializing machine ID from random generator.
> chfn: PAM: Critical error - immediate abort
> adduser: `/usr/bin/chfn -f systemd Time Synchronization
> systemd-timesync' returned error code 1. Exiting.
> dpkg: error processing package systemd (--configure):
>  subprocess installed post-installation script returned error exit status 1
> 
> The problem are apparently the missing quotes in the above command:
> 
> root@yamato:/# /usr/bin/chfn -f systemd Time Synchronization
> systemd-timesync
> chfn: user 'Time' does not exist
> root@yamato:/#
> 
> Adding them fixes the problem:
> 
> root@yamato:/# /usr/bin/chfn -f "systemd Time Synchronization"
> systemd-timesync
> root@yamato:/#
> 
> I checked the systemd postinst and this script does indeed contain
> quotes. For some reasons which I don't understand, adduser invokes
> chfn in during the debootstrap process without the quotes.
> 
> And what's even more crazy, the exact same command line does work
> on m68k or amd64 machines, for example. The sh4 machine is up-to-date,
> so it can be outdated packages either (unless I overlooked something).
> 
> Any ideas?
> 
> PS: I would suggest merging 745082, 763391 and 774332. They seem to
>     describe the exact same bug.
> 
> Adrian
> 
> -- 
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaubitz@debian.org
> `. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
>   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Hi,

May I ask if debootstrap ran in a fakechroot environment or as real root ?

Regards,
JH Chatenet


Reply to: