Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=setup.git;a=commitdiff;h=a5dcb422cb871438951a78ecab91a000e0e3a448
commit a5dcb422cb871438951a78ecab91a000e0e3a448 Author: Miklos Vajna <vmik...@frugalware.org> Date: Sat Dec 4 14:11:42 2010 +0100 hotplug: make /etc/mtab a symlink to /proc/self/mounts in the installer NOTE: this does not affect the installed system at all diff --git a/gui/start.sh b/gui/start.sh index d0fcf05..5fbce01 100644 --- a/gui/start.sh +++ b/gui/start.sh @@ -16,7 +16,7 @@ echo " * Mounting metafilesystems.." mount -t sysfs none /sys mount -t tmpfs none /tmp echo " * Initialising mtab.." -cat /proc/mounts >/etc/mtab +ln -sf /proc/self/mounts /etc/mtab echo " * Load kernel modules.." modprobe isofs modprobe ntfs diff --git a/src/plugins/hotplug.c b/src/plugins/hotplug.c index f2cb601..4400105 100644 --- a/src/plugins/hotplug.c +++ b/src/plugins/hotplug.c @@ -62,7 +62,7 @@ int run(GList **config) fw_system("mount -t proc none /proc"); fw_system("mount -t sysfs none /sys"); fw_system("mount -t tmpfs none /tmp"); - fw_system("cat /proc/mounts >/etc/mtab"); + fw_system("ln -sf /proc/self/mounts /etc/mtab"); fw_system("modprobe isofs"); fw_system("modprobe ntfs"); fw_system("modprobe BusLogic"); diff --git a/src/plugins/install.c b/src/plugins/install.c index 00205c5..35ba0a9 100644 --- a/src/plugins/install.c +++ b/src/plugins/install.c @@ -154,9 +154,6 @@ int installpkgs(GList *pkgs, GList **config) int run(GList **config) { - /* update /etc/mtab so that statvfs() will detect the free space of the - * just mounted partitions */ - copyfile("/proc/mounts", "/etc/mtab"); installpkgs((GList*)data_get(*config, "packages"), config); // if the source media is cd, we don't need broken symlinks after // the installation _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git