summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-10 11:18:45 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-10 11:18:45 +0000
commit222462fbde6aac8cdb909fec6101b83fdbb56ab3 (patch)
tree3d144aafc6e393dd544d98dac5191a1e3735f82c /move
parent9248bb78f5554c08817cc8c34458a9204ce23961 (diff)
downloaddrakx-222462fbde6aac8cdb909fec6101b83fdbb56ab3.tar
drakx-222462fbde6aac8cdb909fec6101b83fdbb56ab3.tar.gz
drakx-222462fbde6aac8cdb909fec6101b83fdbb56ab3.tar.bz2
drakx-222462fbde6aac8cdb909fec6101b83fdbb56ab3.tar.xz
drakx-222462fbde6aac8cdb909fec6101b83fdbb56ab3.zip
order init stuff and tell a bit about it
Diffstat (limited to 'move')
-rw-r--r--move/move.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/move/move.pm b/move/move.pm
index f7313b7dc..d850543c7 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -12,13 +12,20 @@ use run_program;
#- were not necessary to start stage2 itself (there were setup
#- by stage1 of course)
sub init {
+ #- rw things
mkdir "/$_" foreach qw(home mnt root etc var);
mkdir_p "/var/$_" foreach qw(log run spool lib/xkb lock/subsys);
-
- symlinkf "/image/etc/$_", "/etc/$_" foreach qw(alternatives passwd group shadow man.config services shells pam.d security inputrc ld.so.conf DIR_COLORS bashrc profile profile.d rc.d init.d devfsd.conf devfs gtk-2.0 pango fonts);
+ mkdir_p "/etc/$_" foreach qw(X11);
+ touch '/etc/modules.conf';
symlinkf "/proc/mounts", "/etc/mtab";
+
+ #- ro things
+ symlinkf "/image/etc/$_", "/etc/$_" foreach qw(alternatives passwd group shadow man.config services shells pam.d security inputrc ld.so.conf DIR_COLORS bashrc profile profile.d rc.d init.d devfsd.conf devfs gtk-2.0 pango fonts modules.devfs dynamic);
+ #- free up stage1 memory
fs::umount($_) foreach qw(/stage1/proc /stage1);
+
+ #- devfsd needed for devices accessed by old names
fs::mount("none", "/dev", "devfs", 0);
run_program::rooted('', '/sbin/devfsd', '/dev');
}