Comment 11 for bug 1477720

sazwqa (sazwqa) wrote :

Hi,

Noticed a bug:

"/var/lib/lxc/unity8-lxc/rootfs"

This folder didn't exist on my system (Ubuntu 15.04) and the script kept crashing:

Traceback (most recent call last):
  File "/usr/bin/unity8-lxc-setup", line 134, in <module>
    with open(os.path.join(rootfs_path, "etc", "hostname"), "w+") as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/lxc/unity8-lxc/rootfs/etc/hostname'

So I went ahead and created this folder "rootfs" and it's now working.