Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: cochon on September 08, 2017, 05:26:51 PM
-
The 'user=' boot option is processed by tc-config which explicitly calls /bin/adduser to add the user record, but this symlink to busybox is missing in 9.0.3.gz and the user is not added.
The link /bin/adduser -> busybox exists in the x86 branch, and both branches have /usr/sbin/adduser -> busybox, but this isn't called by tc-config. /bin/addgroup is affected similarly.
Cheers,
Phil.
-
/bin/addgroup isn't called in tc-config?
-
Indeed no, but they tend to go hand in hand, and both are present in x86 but missing from pi, so I thought I'd mention it in case there was a knock on effect I'd not discovered.
I can contrive to put the user record and profile in persistent mydata.tgz, but the boot process runs tce-bootload as the missing user, so no extensions get loaded, which makes things hard on a headless pi :)
-
from piCore-9.0.3:
$ which adduser
/usr/sbin/adduser
$ which addgroup
/usr/sbin/addgroup
$ grep adduser /etc/init.d/tc-config
/bin/adduser -s /bin/sh -G staff -D "$USER"
..which would tend to indicate that tc-config needs adjusting
-
That seems the most obvious fix, and as I've just discovered, the issue actually affects the recent 8.1.1 branch of x86 as well. I was still using 8.0.
So it's not a piCore specific problem at all. I assume that will filter over from this forum section to the main branch developers, if indeed they're not one and the same.
-
tc-config is already adjusted in tinycore git and tc-8.1.2 was ready to go with the fix, but now there's a busybox issue to sort out :(