From: <cod...@go...> - 2008-10-10 20:42:23
|
Author: m0e.lnx Date: Fri Oct 10 13:41:14 2008 New Revision: 222 Modified: branches/iVL/.project branches/iVL/DevLog branches/iVL/FrmRootPass.class branches/iVL/FrmUserAdd.class branches/iVL/installer.gambas Log: - Added binded mount of /sys, /dev, /proc, /tmp to target dir to allow password changing / setting of root and user passwords - Updated binary Modified: branches/iVL/.project ============================================================================== --- branches/iVL/.project (original) +++ branches/iVL/.project Fri Oct 10 13:41:14 2008 @@ -2,7 +2,7 @@ # Compiled with Gambas 2.9.0 Title=VectorLinux Installer Startup=MdlCore -Version=0.0.104 +Version=0.0.105 Library=gb.gtk Library=gb.form Library=gb.debug Modified: branches/iVL/DevLog ============================================================================== --- branches/iVL/DevLog (original) +++ branches/iVL/DevLog Fri Oct 10 13:41:14 2008 @@ -1,5 +1,3 @@ -- Fixed object position issues on LIlo config window and optimized it for 800x600 resolution -- Implemented keyboard shortcuts for language selection window -- Fixed problem in full install procedure (some packages (optional) were getting ommitted) -- Fixed object position / resizing issue with User add form. -- Updated Binary \ No newline at end of file +- Added binded mount of /sys, /dev, /proc, /tmp to target dir to allow password changing / setting of root + and user passwords +- Updated binary \ No newline at end of file Modified: branches/iVL/FrmRootPass.class ============================================================================== --- branches/iVL/FrmRootPass.class (original) +++ branches/iVL/FrmRootPass.class Fri Oct 10 13:41:14 2008 @@ -35,6 +35,11 @@ ELSE IF ME.tbPasswd1.Text = ME.tbPasswd2.Text THEN 'Message("chroot /mnt/target /sbin/passwdx root " & ME.tbPasswd1.Text) + ' bind mounting necessary here + SHELL "mount -o bind /sys " & ClsGlobal.sTargetMnt &/ "sys" WAIT + SHELL "mount -o bind /proc " & ClsGlobal.sTargetMnt &/ "proc" WAIT + SHELL "mount -o bind /tmp " & ClsGlobal.sTargetMnt &/ "tmp" WAIT + SHELL "mount -o bind /dev " & ClsGlobal.sTargetMnt &/ "dev" WAIT SHELL "chroot /mnt/target /sbin/passwdx root " & ME.tbPasswd1.Text WAIT 'Message("Root password Set.") ME.tbPasswd1.Clear @@ -46,6 +51,10 @@ ME.tbPasswd1.SetFocus ENDIF ENDIF + SHELL "umount " & ClsGlobal.sTargetMnt &/ "sys" WAIT + SHELL "umount " & ClsGlobal.sTargetMnt &/ "proc" WAIT + SHELL "umount " & ClsGlobal.sTargetMnt &/ "tmp" WAIT + SHELL "umount " & ClsGlobal.sTargetMnt &/ "dev" WAIT END PUBLIC SUB Form_Resize() Modified: branches/iVL/FrmUserAdd.class ============================================================================== --- branches/iVL/FrmUserAdd.class (original) +++ branches/iVL/FrmUserAdd.class Fri Oct 10 13:41:14 2008 @@ -121,6 +121,12 @@ + ' need to do some binding for this to work + SHELL "mount -o bind /sys " & ClsGlobal.sTargetMnt &/ "sys" WAIT + SHELL "mount -o bind /tmp " & ClsGlobal.sTargetMnt &/ "tmp" WAIT + SHELL "mount -o bind /proc " & ClsGlobal.sTargetMnt &/ "proc" WAIT + SHELL "mount -o bind /dev " & ClsGlobal.sTargetMnt &/ "dev" WAIT + SHELL "chroot /mnt/target /usr/sbin/groupdel " & ME.tbUsername.Text & " &> /dev/null" WAIT 'SHELL "chroot /mnt/target /usr/sbin/groupadd -g " & iUID & Space(1) & ME.tbUsername.Text WAIT SHELL "chroot /mnt/target /usr/sbin/groupadd " & ME.tbUsername.Text & " &> /dev/null" WAIT @@ -146,8 +152,20 @@ ENDIF SHELL "umount " & ClsGlobal.sTargetMnt &/ "dev" WAIT SHELL "umount " & ClsGlobal.sTargetMnt &/ "proc" WAIT - Message("Vectorlinux has been installed click OK to reboot") - 'SHELL "reboot" + SHELL "umount " & ClsGlobal.sTargetMnt &/ "tmp" WAIT + SHELL "umount " & ClsGlobal.sTargetMnt &/ "sys" WAIT + + SELECT CASE Message.Question(ClsGlobal.DISTRO & Space(1) & ("has been installed on your computer.") & "<br>" & + ("Would you like to reboot your computer now?"), ("Yes"), ("No")) + CASE 1 + SHELL "shutdown -r now" + CASE ELSE + RETURN + 'STOP EVENT + END SELECT + + + END Modified: branches/iVL/installer.gambas ============================================================================== Binary files. No diff available. |