mkjail / mkjail

BSD 2-Clause "Simplified" License
24 stars 3 forks source link

update fails if jail path != jail name #15

Open dlangille opened 3 years ago

dlangille commented 3 years ago

If the jail path does not match the jail name, the update fails:

During a sudo ./bin/mkjail update -a, I encountered this:

Updating git jail...

/jails/git: No such file or directory
File does not exist or is not readable: /jails/git/etc/freebsd-update.conf

From /etc/jail.conf:

git {
    host.hostname = "git.langille.org";
    path = /jails/git.langille.org;

    ...
}

I later found that you can update that jail manually via : sudo ./bin/mkjail update -j git.langille.org

dlangille commented 3 years ago

jail names cannot contain .

I renamed the mountpoint to /jails/git and removed the path directive.

dlangille commented 3 years ago

This affects jails which were not originally created with mkjail