mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 18:05:42 +03:00
include all of usr
This commit is contained in:
@@ -29,10 +29,7 @@ var (
|
||||
"/lib64": "/lib64",
|
||||
"/run/resolvconf": "/run/resolvconf",
|
||||
"/sbin": "/sbin",
|
||||
"/usr/bin": "/usr/bin",
|
||||
"/usr/lib": "/usr/lib",
|
||||
"/usr/sbin": "/usr/sbin",
|
||||
"/usr/share": "/usr/share",
|
||||
"/usr": "/usr",
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func NewJavaDriver(ctx *DriverContext) Driver {
|
||||
func (d *JavaDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) {
|
||||
// Only enable if we are root and cgroups are mounted when running on linux systems.
|
||||
if runtime.GOOS == "linux" && (syscall.Geteuid() != 0 || !d.cgroupsMounted(node)) {
|
||||
d.logger.Printf("[DEBUG] driver.java: must run as root user on linux, disabling")
|
||||
d.logger.Printf("[DEBUG] driver.java: root priviledges and mounted cgroups required on linux, disabling")
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user