Subject: bug#457: Beowulf upgrade drops "sbin" directories from root $PATH

From: [email-masked]
Date: Sun, 10 May 2020 17:02:56 +0000

Package: unclear
Version: unclear (Beowulf-related)

Description of Problem
After upgrade from ASCII to Beowulf, /sbin, /usr/sbin, and /usr/local/sbin are dropped from the root $PATH variable.

Explanation

I performed an install of Devuan ASCII and immediately upgraded to beowulf:
sed -i 's/ascii/beowulf/g' /etc/apt/sources.list && \
apt-get update && \
apt-get dist-upgrade && \
apt-get autoremove && \
reboot

Upon reboot, I noticed that the "service" command could not be found. Nor could ifconfig. I could, however, run the command with the full path (ie, /sbin/ifconfig).

Workaround

echoing $PATH proved that there were no sbin directories (/sbin, /usr/sbin, /usr/local/sbin). I was able to work around this with a simple export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin for my root account.

Other system information
# uname -a:
Linux HOSTNAME 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Devuan GNU/Linux 3 (beowulf)
Release:        3
Codename:       beowulf

Of course, if I were the culprit (not the upgrade), feel free to call me out.

All the best,
- siva

Sent with [ProtonMail](https://protonmail.com) Secure Email.

---

From: Mark Hindley <[email-masked]>
Date: Mon, 11 May 2020 09:53:28 +0100

Control: reassign -1 util-linux

Eidolon,

Thanks for this.

On Sun, May 10, 2020 at 05:02:56PM +0000, [email-masked] wrote:
>    Upon reboot, I noticed that the "service" command could not be found.
>    Nor could ifconfig. I could, however, run the command with the full
>    path (ie, /sbin/ifconfig).
> 
>    Workaround
> 
>    echoing $PATH proved that there were no sbin directories (/sbin,
>    /usr/sbin, /usr/local/sbin). I was able to work around this with a
>    simple export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin for my root
>    account.

You don't say how you are using root. I suspect with su(1)?

If so, this behaviour change is known and well documented. See

 - https://beta.devuan.org/os/documentation/install-guides/beowulf/Release_notes_beowulf_3.0.0.txt
 - /usr/share/doc/util-linux/NEWS.Debian.gz

Mark

---

From: "Devuan bug Tracking System" <[email-masked]>
Date: Mon, 11 May 2020 15:03:04 +0000

This is an automatic notification regarding your bug report
which was filed against the util-linux package:

#457: Beowulf upgrade drops "sbin" directories from root $PATH

It has been closed by Mark Hindley <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mark Hindley <[email-masked]> by
replying to this email.

-- 
457: https://bugs.devuan.org/cgi/bugreport.cgi?bug=457
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#457: Beowulf upgrade drops "sbin" directories from root $PATH
From: Mark Hindley <[email-masked]>
To: [email-masked], [email-masked]
Date: Mon, 11 May 2020 15:38:24 +0100

On Mon, May 11, 2020 at 01:48:16PM +0000, [email-masked] wrote:
> Yup, that's it. Definitely missed that release note. Thank you.

Thanks for confirming.

Closing.

Mark

Subject: Beowulf upgrade drops "sbin" directories from root $PATH
From: [email-masked]
To: "[email-masked]" <[email-masked]>
Date: Sun, 10 May 2020 17:02:56 +0000

Package: unclear

Description of Problem

Explanation

Workaround

Other system information
# uname -a:

# lsb_release -a

All the best,
- siva