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:
Juan RP 2020-02-06 08:50:12 +01:00
parent f6a6385b42
commit 3a0ca77264
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -409,8 +409,6 @@ main(int argc, char **argv)
/* mount as private, systemd mounts it as shared by default */
if (mount(NULL, "/", "none", MS_PRIVATE|MS_REC, NULL) == -1)
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 */
if (overlayfs)