remove default home mount

This commit is contained in:
Christian Goll
2022-01-27 11:04:52 +01:00
parent acabc491f7
commit 29fc75a2b6
2 changed files with 0 additions and 14 deletions

View File

@@ -61,11 +61,6 @@ func Configure(show bool) error {
fmt.Fprintf(exports, "# This file was written by Warewulf (wwctl configure nfs)\n")
for _, export := range controller.Nfs.Exports {
fmt.Fprintf(exports, "%s %s/%s(sync)\n", export, controller.Network, controller.Netmask)
fmt.Fprintf(fstab, "%s:%s %s nfs defaults 0 0\n", controller.Ipaddr, export, export)
}
for _, export := range controller.Nfs.ExportsExtended {
fmt.Fprintf(exports, "%s %s/%s(%s)\n", export.Path, controller.Network, controller.Netmask, export.ExportOptions)
if export.Mount {
@@ -102,9 +97,6 @@ func Configure(show bool) error {
}
fmt.Printf("\n")
fmt.Printf("SYSTEM OVERLAY: wwinit/etc/fstab:\n")
for _, export := range controller.Nfs.Exports {
fmt.Printf("%s:%s %s nfs defaults 0 0\n", controller.Ipaddr, export, export)
}
for _, export := range controller.Nfs.ExportsExtended {
fmt.Printf("%s:%s %s nfs defaults 0 0\n", controller.Ipaddr, export.Path, export.Path)
}

View File

@@ -26,17 +26,11 @@ func defaultConfig() *ControllerConf {
TftpRoot: "/var/lib/tftpboot",
SystemdName: "tftp",
}
Nfs := &NfsConf{
Enabled: true,
Exports: []string{"/home"},
SystemdName: "nfs-server",
}
return &ControllerConf{
Warewulf: Warewulf,
Dhcp: Dhcp,
Tftp: Tftp,
Nfs: Nfs,
current: false,
}
}