xbps-uchroot: stop remounting / unnecessarily.
The remount is done to use nosuid, but we can get rid of the remount just because of this specific option that does not have too much value for our general usage (xbps-src).
This commit is contained in:
parent
f6a6385b42
commit
3a0ca77264
@ -409,8 +409,6 @@ main(int argc, char **argv)
|
|||||||
/* mount as private, systemd mounts it as shared by default */
|
/* mount as private, systemd mounts it as shared by default */
|
||||||
if (mount(NULL, "/", "none", MS_PRIVATE|MS_REC, NULL) == -1)
|
if (mount(NULL, "/", "none", MS_PRIVATE|MS_REC, NULL) == -1)
|
||||||
die("Failed to mount / private");
|
die("Failed to mount / private");
|
||||||
if (mount(NULL, "/", "none", MS_PRIVATE|MS_REMOUNT|MS_NOSUID, NULL) == -1)
|
|
||||||
die("Failed to remount /");
|
|
||||||
|
|
||||||
/* setup our overlayfs if set */
|
/* setup our overlayfs if set */
|
||||||
if (overlayfs)
|
if (overlayfs)
|
||||||
|
Loading…
Reference in New Issue
Block a user