Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
restore the /initrd bind mount, to reduce the risk of regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Feb 1, 2022
1 parent 5fe84ba commit c58fab2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frugalify.c
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,11 @@ int main(int argc, char *argv[])
if (mountroot(devroot, ro) < 0)
return EXIT_FAILURE;

// also give processes running with the union file system as / a directory
// outside of the union file system that can be used to add aufs branches
if (mount("/mnt/home", "/initrd", NULL, MS_BIND, NULL) < 0)
return EXIT_FAILURE;

if (syslogd() == 0)
klogd();

Expand Down

0 comments on commit c58fab2

Please sign in to comment.