Skip to content

Commit 50a3a1b

Browse files
committed
fix: correct error in bind mount line
1 parent a1240a5 commit 50a3a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/mount-sys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func adjustFstab(uuid string, dryRun bool) error {
228228
}
229229

230230
mountpoint := words[1]
231-
varBindMountLine := fmt.Sprintf("/var/%s %s none defaults,bind 0 0", mountpoint, mountpoint)
231+
varBindMountLine := fmt.Sprintf("/var%s %s none defaults,bind 0 0", mountpoint, mountpoint)
232232

233233
if slices.Contains(systemMounts, mountpoint) || (slices.Contains(varBindMounts, mountpoint) && line == varBindMountLine) {
234234
cmdr.FgDefault.Println("Deleting line: ", line)

0 commit comments

Comments
 (0)