diff options
author | Maarten Vanraes <alien@mageia.org> | 2011-10-24 18:05:36 +0000 |
---|---|---|
committer | Maarten Vanraes <alien@mageia.org> | 2011-10-24 18:05:36 +0000 |
commit | b0cae796314f7c0ceda3d44f0fa74e55acd21b8b (patch) | |
tree | 0143632fd8b255c90fdb39a4b527f5dfeb81c820 /rescue/tree/etc/rc.sysinit | |
parent | 8b55d62379d30e5263c28604f229ec376a9fa72e (diff) | |
download | drakx-backup-do-not-use-b0cae796314f7c0ceda3d44f0fa74e55acd21b8b.tar drakx-backup-do-not-use-b0cae796314f7c0ceda3d44f0fa74e55acd21b8b.tar.gz drakx-backup-do-not-use-b0cae796314f7c0ceda3d44f0fa74e55acd21b8b.tar.bz2 drakx-backup-do-not-use-b0cae796314f7c0ceda3d44f0fa74e55acd21b8b.tar.xz drakx-backup-do-not-use-b0cae796314f7c0ceda3d44f0fa74e55acd21b8b.zip |
- add screen
- add dropbear
- add etc/shells
- add script that set password and start ssh server
Diffstat (limited to 'rescue/tree/etc/rc.sysinit')
-rwxr-xr-x | rescue/tree/etc/rc.sysinit | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rescue/tree/etc/rc.sysinit b/rescue/tree/etc/rc.sysinit index e5164dd45..39d7dec6b 100755 --- a/rescue/tree/etc/rc.sysinit +++ b/rescue/tree/etc/rc.sysinit @@ -11,14 +11,20 @@ echo -e "\t\t\tWelcome to \\033[1;36mMageia\\033[0;39m Linux" action "Remounting root filesystem in read-write mode" mount -n -o remount,rw / ln -s /tmp/stage2/etc/* /etc 2>/dev/null +# make passwd changable +rm -f /etc/passwd +cp /tmp/stage2/etc/passwd /etc/ rm -f /dev ; cp -a /tmp/stage2/dev /dev -mkdir -p /mnt /var/log +mkdir -p /mnt /var/log /dev/pts >/etc/mtab mount -f / mount -f /proc +# mount /dev/pts and link /dev/ptmx so dropbear works +mount /dev/pts +ln -s /dev/pts/ptmx /dev/ptmx # Set the hostname. action "Setting hostname rescue" hostname rescue |