NetBSD-Users archive

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

Re: I broke "su"?



On Fri, Jan 17, 2025 at 10:36 AM Martin Husemann <martin%duskware.de@localhost> wrote:
>
> On Fri, Jan 17, 2025 at 04:08:23AM +0300, Andrew Randrianasulu wrote:
> > Ok, booted single user, started dhcpcd (client) downloaded base.tgz from
> > ftp.netbsd.org 10.1 branch (dec 17), unpacked it with tar from /rescue.
>
> 10.1 or netbsd-10 daily snapshots won't make a difference here.
> "sysupgrade" seems to be seriously broken if it removes old shared libraries.
>
> You should repeat the procedure you did and:
>
>  - extract base.tgz form 10.0 (to restore the missing shared libraries
>  - extract base.tgz from 10.1 or 10.1_STABLE (doesn't matter)
>
> (in this order!)
>
> When extracting with /rescue, you need to make sure to pass the -p flag
> to tar, something like:
>
>         cd / && /rescue/gunzip < /tmp/base.tgz | /rescue/tar xpzf -
>
> With -p you will get the proper permissions restored.

Thanks , adding "-p" to tar's flags on second try solved this issue!

>
> Martin


Home | Main Index | Thread Index | Old Index