mocaccinoOS / mocaccino

:musical_score: where magic happens
69 stars 7 forks source link

installed failed while creating user because scanner group does not exist #28

Closed dufresnep closed 2 years ago

dufresnep commented 2 years ago

Luet version:

paul@mocaccino ~ $ MocaccinoOS --version bash: MocaccinoOS: command not found version freshly downloaded (Mate)

CPU architecture, OS, and Version:

paul@mocaccino ~ $ uname -a Linux mocaccino 5.10.73-mocaccino #5.10.73-Mocaccino SMP Sun Oct 17 12:00:14 UTC 2021 x86_64 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz GenuineIntel GNU/Linux paul@mocaccino ~ $

Describe the bug

I used the installer, but after copying many files, if not all, it failed with a window (in french): a commande externe s'est terminée avec des erreurs. La commande usermod -aG users,lp,video,network,storage,wheel,audio,cdrom,cdrw,polkituser,games,scanner,usb,plugdev,messagebus,lpadmin,autologin paul s'est terminée avec le code de sortie 6. Sortie usermod: group 'scanner' does not exist

To Reproduce

Expected behavior

Logs

Additional context

dufresnep commented 2 years ago

paul@mocaccino ~ $ cat /etc/group|grep scanner scanner:::saned paul@mocaccino ~ $

paul@mocaccino /tmp/calamares-root-baj1dyfe $ cat etc/group|grep scanner scanner:::saned paul@mocaccino /tmp/calamares-root-baj1dyfe $

dufresnep commented 2 years ago

The scanner have 3 :, and other groups have 2 : characters.

dufresnep commented 2 years ago

mocaccino /tmp/calamares-root-baj1dyfe # luet search --files /etc/group ... --- Search results (/etc/group): --- ── init/mocaccino-skel-20210703+3 ├─ Category: init ├─ Name: mocaccino-skel ├─ Version: 20210703+3 ├─ Description: ├─ Repository: mocaccino-os-commons ╰─ Uri:
mocaccino /tmp/calamares-root-baj1dyfe #

joostruis commented 2 years ago

It seems there is a general issue with entities on iso generation.

2021-10-21T02:11:10.6129525Z >>> Regenerating /etc/ld.so.cache... 2021-10-21T02:11:10.7378139Z Executing finalizer for entity/scanner-3 2021-10-21T02:11:10.7379521Z 🐚 Executing finalizer on /tmp/luet-geniso2008391181/overlayfs sh [-c entity-apply scanner] 2021-10-21T02:11:10.7770809Z Executing [-c entity-apply scanner] in /tmp/luet-geniso2008391181/overlayfs 2021-10-21T02:11:10.7843945Z Error: Failed parsing passwd: Expected int for gid 2021-10-21T02:11:10.7848599Z Usage: 2021-10-21T02:11:10.7849067Z entities apply [flags] 2021-10-21T02:11:10.7849382Z 2021-10-21T02:11:10.7849710Z Flags: 2021-10-21T02:11:10.7850497Z -h, --help help for apply 2021-10-21T02:11:10.7851832Z --safe Avoid to override existing entity if it has difference or if the id is used in a different way. 2021-10-21T02:11:10.7852451Z 2021-10-21T02:11:10.7852829Z Global Flags: 2021-10-21T02:11:10.7853610Z -f, --file string File to manipulate ( e.g. /etc/passwd ) 2021-10-21T02:11:10.7854057Z 2021-10-21T02:11:10.7854548Z Failed parsing passwd: Expected int for gid

joostruis commented 2 years ago

Problem resolved. New stable images are pushed.