Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: cochon on September 08, 2017, 05:26:51 PM

Title: 'user=' boot option broken by missing symlink in piCore 9.0.3.gz
Post 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.
Title: Re: 'user=' boot option broken by missing symlink in piCore 9.0.3.gz
Post by: Juanito on September 09, 2017, 03:23:19 AM
/bin/addgroup isn't called in tc-config?
Title: Re: 'user=' boot option broken by missing symlink in piCore 9.0.3.gz
Post by: cochon on September 09, 2017, 03:52:33 AM
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 :)
Title: Re: 'user=' boot option broken by missing symlink in piCore 9.0.3.gz
Post by: Juanito on September 09, 2017, 06:51:50 AM
from piCore-9.0.3:
Code: [Select]
$ 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
Title: Re: 'user=' boot option broken by missing symlink in piCore 9.0.3.gz
Post by: cochon on September 11, 2017, 12:37:21 PM
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.
Title: Re: 'user=' boot option broken by missing symlink in piCore 9.0.3.gz
Post by: Juanito on September 11, 2017, 12:46:43 PM
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  :(