[systemd-bugs] [Bug 64014] New: systemd-nspawn only checks for etc/os-release

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Apr 28 02:38:44 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=64014

          Priority: medium
            Bug ID: 64014
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemd-nspawn only checks for etc/os-release
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: minor
    Classification: Unclassified
                OS: Linux (All)
          Reporter: ijanos at gmail.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

After the latest systemd upgrade, systemd-nspawn refused to run my
debootstrapped Debian Squeeze directory because it “doesn't look like an OS
root directory”.

It turned out that the OS detection logic changed from checking for the
DIR/bin/sh file to check the existence of DIR/etc/os-release file, so the
solution was easy enough, I had to create that file. 

However, I don't think /etc/os-release is widespread enough to use it
exclusively, maybe systemd-nspawn could fallback to check /bin/sh if os-release
doesn't exists. 

Or, if you stick to this decision, please put it in the man page or add a more
verbose error message, because I had to use strace to find out which file was
missing.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130428/1b953b13/attachment.html>


More information about the systemd-bugs mailing list