Commit a0095aad authored by Robert Spencer's avatar Robert Spencer
Browse files

Hard code /boot for root backups



Simplifies the configuration file and command line.
Signed-off-by: Robert Spencer's avatarRobert Spencer <rspencer@lbsd.net>
parent 6b613f2f
......@@ -112,10 +112,9 @@ for lv in ast.literal_eval(config.get(PERIOD, "backup_lvs")):
else:
continue
if "," in lv:
lv, bind_mount = lv.split(",")
if lv == "root":
bind_mount_args.append("--bind-mount")
bind_mount_args.append(bind_mount + ":" + bind_mount)
bind_mount_args.append("/boot:/boot")
lvm_snapshot_args.append("--lvm-snapshot")
lvm_snapshot_args.append(VG + "/" + lv)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment