dash: systemd-detect-virt fails to detect virtualized environment when run under dash

Michael Biebl biebl at debian.org
Thu Oct 11 03:42:10 BST 2018


Am 11.10.18 um 03:53 schrieb Jonathan Nieder:
> Hi,
> 
> spuggy930 at gmail.com wrote:
> 
>> When run under dash, systemd-detect-virt returns "none" in a systemd-nspawn
>> chroot'd environment when it should not; same command under bash works
>> as expected.
> 
> Do you have more details?  What test does systemd-detect-virt use, and
> why is it failing on dash?  What version of systemd are you using?

Fwiw, I can't reproduce

# machinectl shell debian
Connected to machine debian. Press ^] three times within 1s to exit session.
root at debian:~# systemd-detect-virt
systemd-nspawn
root at debian:~# dash
# systemd-detect-virt
systemd-nspawn

This is on stretch.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20181011/000c74be/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list