mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
prepare-root: remember to remove /sysroot.tmp
Without this, rerunning ostree-prepare-root will fail in mkdir() because /sysroot.tmp already exists, which complicates debugging from the dracut emergency shell. Closes: #1919 Approved by: cgwalters
This commit is contained in:
parent
ca701f69c2
commit
653fc6a125
@ -273,6 +273,9 @@ main(int argc, char *argv[])
|
||||
|
||||
if (mount (".", root_mountpoint, NULL, MS_MOVE, NULL) < 0)
|
||||
err (EXIT_FAILURE, "failed to MS_MOVE %s to %s", deploy_path, root_mountpoint);
|
||||
|
||||
if (rmdir ("/sysroot.tmp") < 0)
|
||||
err (EXIT_FAILURE, "couldn't remove temporary sysroot /sysroot.tmp");
|
||||
}
|
||||
|
||||
/* The /sysroot mount needs to be private to avoid having a mount for e.g. /var/cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user