arighi / virtme-ng

Quickly build and run kernels inside a virtualized snapshot of your live system
GNU General Public License v2.0
417 stars 45 forks source link

init: set the HOME env var if root #94

Closed matttbe closed 6 months ago

matttbe commented 6 months ago

When virtme-ng was running as root, the HOME dir was set to '/'.

Now it is set to '/root', the expected value.

Fixes: bcd99d9 ("virtme-init: docker host support")

Similar to https://github.com/arighi/virtme-ng-init/pull/7 but for the old init script.