mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
fix(boot): add minimal early mounts for /dev and /proc in stage0 resume path
This commit is contained in:
parent
8ad179e1e6
commit
c90d9da159
3 changed files with 30 additions and 1 deletions
|
|
@ -534,6 +534,8 @@ void output_resume_network_init(FILE *out) {
|
|||
fputs("if [ -f /steps/bootstrap.cfg ]; then\n", out);
|
||||
fputs(". /steps/bootstrap.cfg\n", out);
|
||||
fputs("fi\n", out);
|
||||
fputs("mount | grep ' on /dev ' >/dev/null 2>&1 || (mkdir -p /dev; mount -t devtmpfs devtmpfs /dev)\n", out);
|
||||
fputs("mount | grep ' on /proc ' >/dev/null 2>&1 || (mkdir -p /proc; mount -t proc proc /proc)\n", out);
|
||||
fputs("if [ \"${CHROOT}\" = False ] && command -v dhcpcd >/dev/null 2>&1; then\n", out);
|
||||
fputs("dhcpcd --waitip=4 || true\n", out);
|
||||
fputs("fi\n", out);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue