summaryrefslogtreecommitdiffstats
path: root/loader2/init.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-11-21 05:23:05 +0000
committerBill Nottingham <notting@redhat.com>2003-11-21 05:23:05 +0000
commitaf9261933ac23e22ab3d73c8bb6eba85b5f6fa8d (patch)
tree29d388853f2c0c6489400888d32f9e6d0dcbcf3b /loader2/init.c
parentddef445719485d90765a9105ee8779c3eb635875 (diff)
downloadanaconda-af9261933ac23e22ab3d73c8bb6eba85b5f6fa8d.tar.gz
anaconda-af9261933ac23e22ab3d73c8bb6eba85b5f6fa8d.tar.xz
anaconda-af9261933ac23e22ab3d73c8bb6eba85b5f6fa8d.zip
mount sysfs in the loader, and write it in /etc/fstab too
Diffstat (limited to 'loader2/init.c')
-rw-r--r--loader2/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/loader2/init.c b/loader2/init.c
index 675713941..bc8527a75 100644
--- a/loader2/init.c
+++ b/loader2/init.c
@@ -487,6 +487,13 @@ int main(int argc, char **argv) {
}
printf("done\n");
+ printf("mounting /sys filesystem... ");
+ if (!testing) {
+ if (mount("/sys", "/sys", "sysfs", 0, NULL))
+ fatal_error(1);
+ }
+ printf("done\n");
+
printf("mounting /dev/pts (unix98 pty) filesystem... ");
if (!testing) {
if (mount("/dev/pts", "/dev/pts", "devpts", 0, NULL))