You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(40) |
Apr
(76) |
May
(31) |
Jun
(39) |
Jul
(44) |
Aug
(87) |
Sep
(32) |
Oct
(23) |
Nov
(36) |
Dec
(10) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(49) |
Sep
(14) |
Oct
|
Nov
|
Dec
(1) |
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(63) |
Aug
(95) |
Sep
(39) |
Oct
(61) |
Nov
(75) |
Dec
(118) |
2009 |
Jan
(25) |
Feb
(37) |
Mar
(20) |
Apr
(15) |
May
(14) |
Jun
(48) |
Jul
(82) |
Aug
(160) |
Sep
(94) |
Oct
(55) |
Nov
(59) |
Dec
(4) |
2010 |
Jan
(5) |
Feb
(17) |
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: <cod...@go...> - 2008-08-27 21:36:14
|
Author: m0e.lnx Date: Wed Aug 27 14:35:33 2008 New Revision: 150 Modified: branches/iVL/.lang/FMain.pot branches/iVL/ClsGlobal.class branches/iVL/FMain.class branches/iVL/FMain.form branches/iVL/FrmInstallSys.class branches/iVL/FrmInstallSys.form branches/iVL/MdlCore.module branches/iVL/MdlInstallSys.module branches/iVL/MdlSetup.module branches/iVL/MdlWinDrives.module Log: - Expanded left pane to get rid of unnecessary scrollbar at the bottom of the treeview - Made corrections to fstab writter and to use ntfs-3g instead of ntfs Modified: branches/iVL/.lang/FMain.pot ============================================================================== --- branches/iVL/.lang/FMain.pot (original) +++ branches/iVL/.lang/FMain.pot Wed Aug 27 14:35:33 2008 @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FMain.class:308 +#: FMain.class:313 msgid "Process Overview" msgstr "" -#: FMain.class:327 +#: FMain.class:333 msgid "Next" msgstr "" -#: FMain.class:333 +#: FMain.class:339 msgid "Back" msgstr "" -#: FMain.class:339 +#: FMain.class:345 msgid "Exit" msgstr "" Modified: branches/iVL/ClsGlobal.class ============================================================================== --- branches/iVL/ClsGlobal.class (original) +++ branches/iVL/ClsGlobal.class Wed Aug 27 14:35:33 2008 @@ -28,7 +28,7 @@ STATIC PUBLIC sRootMnt AS String STATIC PUBLIC sHomeMnt AS String STATIC PUBLIC sTargetMnt AS String -STATIC PUBLIC sSourceMnt AS String +STATIC PUBLIC sSourceMnt AS String = "/mnt/source" STATIC PUBLIC sMediaMnt AS String STATIC PUBLIC sBulkList AS String Modified: branches/iVL/FMain.class ============================================================================== --- branches/iVL/FMain.class (original) +++ branches/iVL/FMain.class Wed Aug 27 14:35:33 2008 @@ -33,7 +33,7 @@ MdlCore.LOCK_GUI 'MdlCore.LOCK_GUI() ClsGlobal.sBackNav = NEW Object[] -ClsGlobal.sSourceMnt = "/mnt" &/ "cdrom" 'FOR TESTING ONLY +'ClsGlobal.sSourceMnt = "/mnt" &/ "source" 'FOR TESTING ONLY '/ THE FOLLOWING LINES HAVE BEEN COMMENTED FOR TESTING ONLY FrmSelISO.Reparent(ME.pnlWinHost) @@ -70,7 +70,7 @@ END WITH 'ME.TreeView1.BackColor = Color.Transparent -ME.AUTOSIZE_LEFT_PANE +''ME.AUTOSIZE_LEFT_PANE() ' ' ' / THE FOLLOWING LINES HAVE BEEN IMPLEMENTED FOR TESTING PURPOSES ' ' ' WITH FrmLilo ' ' ' .Reparent(Fmain.pnlWinHost) @@ -79,21 +79,26 @@ ' ' ' .Show ' ' ' END WITH + + END PUBLIC SUB AUTOSIZE_LEFT_PANE() + + DIM iWidth AS Integer ' this will find widest child in treeview ME.tvPlan.MoveFirst() REPEAT IF MdlObjSizer.get_object_width(tvPlan.Item.Text) > iWidth THEN - iWidth = MdlObjSizer.get_object_width(tvPlan.item.Text) + 24 + iWidth = MdlObjSizer.get_object_width(tvPlan.item.Text) + 12 END IF UNTIL ME.tvPlan.MoveBelow() - - ME.tvPlan.Width = iWidth + (iWidth / 20) - ME.Frame1.Width = iWidth + (iWidth / 10) + 'Message(iWidth) + 'ME.tvPlan.Width = iWidth + (iWidth / 5) + ME.tvPlan.Width = iWidth + 6 + ME.Frame1.Width = iWidth + 12 END @@ -117,10 +122,10 @@ 'ME.pnlWinHost.Resize(ME.ClientWidth - ME.Frame1.Width - (ME.Frame1.left * 8), ME.ClientH - ME.tlBanner.Height - (ME.btback.Height * 8)) WITH ME .tlBanner.width = ME.width - .Frame1.Move(4, .PictureBox1.Top + .PictureBox1.Height + 4, MdlCore.iLeftWidth * 1.5, .ClientHeight - .PictureBox1.Height * 1.5) + .Frame1.Move(4, .PictureBox1.Top + .PictureBox1.Height + 4, MdlCore.iLeftWidth * 1.7, .ClientHeight - .PictureBox1.Height * 1.5) '.Frame1.Move(4, .PictureBox1.top + .PictureBox1.Height + 4, MdlCore.iLeftWidth * 1.60, .ClientHeight - tlBanner.Height - (.btback.Height * 2)) '.Frame1.Resize(MdlCore.iLeftWidth * 1.60, .ClientHeight - tlBanner.Height - (.btback.Height * 1.5)) - .tvPlan.Move(4, 24, .Frame1.Width - 8, .Frame1.Height - 28) ' THIS WILL LEAVE 16PIX ON TOP AND BOTTOM AND 2 ON LEFT AND RIGHT + .tvPlan.Move(4, 24, .Frame1.Width - 8, .Frame1.Height - 28) ' THIS WILL LEAVE 16PIX ON TOP AND BOTTOM AND 2 ON LEFT AND RIGHT '.tvPlan.Move(4, 24, .Frame1.Width - 8, Frame1.Height - (.Frame1.Height / 20)) '.pnlWinHost.Move(.Frame1.left + .Frame1.Width + 4, .Frame1.top + (.tlBanner.Height / 2), .tlBanner.Width - (.Frame1.Width + 8), .ClientHeight - (.tlbanner.height + (.btback.height * 3.5))) Modified: branches/iVL/FMain.form ============================================================================== --- branches/iVL/FMain.form (original) +++ branches/iVL/FMain.form Wed Aug 27 14:35:33 2008 @@ -8,6 +8,7 @@ Text = ("Process Overview") { tvPlan TreeView MoveScaled(1,2,22,56) + Expand = True Border = False } } Modified: branches/iVL/FrmInstallSys.class ============================================================================== --- branches/iVL/FrmInstallSys.class (original) +++ branches/iVL/FrmInstallSys.class Wed Aug 27 14:35:33 2008 @@ -41,7 +41,7 @@ FMain.FrmCurr = ME - ClsGlobal.sSourceMnt = "/mnt/cdrom" + 'ClsGlobal.sSourceMnt = "/mnt/cdrom" 'ME.FrmProg.Text = " Preparing system for installation " ME.tlCurrStepLbl.Text = "Current Step" 'ME.show_credits @@ -50,6 +50,9 @@ 'STOP EVENT +MdlSetup.RUN_CREDITS(ClsGlobal.sSourceMnt &/ "CREDIT", ME.tlCredits) +WAIT + ME.BEGIN_PROCESS() ' COMMENTED FOR TESTING PURPOSES @@ -76,8 +79,10 @@ .pbInstallProg.Move(.tlCurrStepLbl.left + (.tlCurrStepLbl.Width), .tlCurrStepLbl.top, .FrmProg.Width - (.tlCurrStepLbl.Width + (.tlcurrsteplbl.left * 2))) .tlCurrPkg2.Move(.tlCurrPkg.Left, .tlCurrPkg.top + (.tlCurrPkg.Height * 2.5), .FrmProg.Width - (.tlCurrPkg.Left * 2)) .pbInstallProg2.Move(.tlCurrPkg2.Left, .tlCurrPkg2.top + (.tlCurrPkg2.Height + 2), .tlCurrPkg2.Width, 27) - .frmCredits.Move(.FrmProg.left, .FrmProg.top + .FrmProg.Height + 16, .FrmProg.Width) - .sclCredits.Move(8, 24, .frmCredits.Width - (.sclCredits.left * 2)) +' .frmCredits.Move(.FrmProg.left, .FrmProg.top + .FrmProg.Height + 16, .FrmProg.Width) + '.scrlCredits.move(8, 24, .FrmProg.Width - (.scrlCredits.left * 2)) + .scrlCredits.Move(.FrmProg.left, .FrmProg.top + FrmProg.Height + 24, .FrmProg.Width) + .tlCredits.Move(8, 4) '.pbInstallProg.Move(.tlCurrStepLbl.Left + (.tlCurrStepLbl.Width + 2), .FrmProg.Width - (.tlCurrStepLbl.Width + (.tlCurrStepLbl.left * 2))) ' @@ -104,25 +109,25 @@ PUBLIC SUB tmCredits_Timer() - ' ' DIM i AS Integer = ME.FrmProg.left + 20 - ' ' - ' ' IF ME.tlCredits.x < (i) - (ME.tlCredits.Width) THEN ME.tlCredits.x = (frmCredits.Width - 12) - ' ' tlCredits.x = frmCredits.left + 4 + (tlCredits.x - 10) - ' ' - + ' ' ' DIM i AS Integer = ME.FrmProg.left + 20 + ' ' ' + ' ' ' IF ME.tlCredits.x < (i) - (ME.tlCredits.Width) THEN ME.tlCredits.x = (frmCredits.Width - 12) + ' ' ' tlCredits.x = frmCredits.left + 4 + (tlCredits.x - 10) + ' ' ' + ' ' ' DIM X AS Integer - X = ME.sclCredits.ScrollX - - INC ME.sclCredits.ScrollX - IF X = ME.sclCredits.Scrollx THEN - ME.sclCredits.scrollx = 0 + X = ME.scrlCredits.ScrollX + 'REPEAT + INC ME.scrlCredits.ScrollX + IF X = ME.scrlCredits.Scrollx THEN + ME.scrlCredits.scrollx = 0 ME.tmCredits.Enabled = FALSE END IF - + 'UNTIL tmCredits.Enabled = FALSE ' Modified: branches/iVL/FrmInstallSys.form ============================================================================== --- branches/iVL/FrmInstallSys.form (original) +++ branches/iVL/FrmInstallSys.form Wed Aug 27 14:35:33 2008 @@ -1,7 +1,7 @@ # Gambas Form File 2.0 { Form Form - MoveScaled(0,0,90,66) + MoveScaled(0,0,90,83.3333) Text = ("") { tlBanner TextLabel MoveScaled(1,1,63,5) @@ -11,7 +11,7 @@ MoveScaled(1,10,76,34) Text = ("") { tlCurrPkg TextLabel - MoveScaled(2,1,73,3.125) + MoveScaled(2,1,73,3) Text = ("Installing ...") } { pbInstallProg ProgressBar @@ -19,10 +19,10 @@ Label = False } { pbInstallProg2 ProgressBar - MoveScaled(1,19,44,3.125) + MoveScaled(1,19,44,3) } { tlCurrPkg2 TextLabel - MoveScaled(1,15,45,3.125) + MoveScaled(1,15,45,3) Text = ("Total progress") } { tlCurrStepLbl TextLabel @@ -30,24 +30,18 @@ Text = ("Current Step ") } } - { frmCredits Frame - MoveScaled(12,45,38,12) - Font = Font["-1"] - Text = ("") - { sclCredits ScrollView - MoveScaled(2,1,34,8) - Border = False - ScrollBar = Scroll.None - { tlCredits TextLabel - MoveScaled(2,1,30,5) - Text = ("") - Alignment = Align.Normal - } - } - } { tmCredits #Timer #X = 632 #Y = 80 Delay = 30 + } + { scrlCredits ScrollView + MoveScaled(2,48,84,5) + Border = False + ScrollBar = Scroll.None + { tlCredits TextLabel + MoveScaled(1,1,46,3.5) + Text = ("TextLabel1") + } } } Modified: branches/iVL/MdlCore.module ============================================================================== --- branches/iVL/MdlCore.module (original) +++ branches/iVL/MdlCore.module Wed Aug 27 14:35:33 2008 @@ -32,7 +32,7 @@ DIM sISOList AS String[] DIM sResults, sISO AS String DIM i AS Integer - + 'Message(ClsGlobal.sSourceMnt) SHELL "umount " & ClsGlobal.sSourceMnt WAIT SHELL "mount " & sDrive & Space(1) & ClsGlobal.sSourceMnt WAIT SHELL "ls " & ClsGlobal.sSourceMnt & " | grep -i vl* | grep -i iso" TO sResults @@ -99,11 +99,12 @@ DIM sPartition AS String 'SHELL "sudo /sbin/probepart | grep -e \"*Linux$\" | cut -f 1 -d \' \'" TO sResults - SHELL "/sbin/probepart | cut -f 1 -d \' \' | grep /dev" TO sResults - + 'SHELL "/sbin/probepart |grep -i extended | grep -i swap | cut -f 1 -d \' \' | grep /dev" TO sResults + SHELL "probepart | grep -v -i \'swap\' | grep -v -i \'ext\' |grep \'/dev\'| grep -v \'Disk\'| cut -f 1 -d \' \'" TO sResults + 'Message(sResults) sResults = Trim(sResults) 'Message.Info(sResults) - IF InStr(sResults, gb.NewLine) THEN + 'IF InStr(sResults, gb.NewLine) THEN sPartList = Split(sResults, gb.NewLine) FOR i = 0 TO sPartList.count - 1 sPartition = Trim(sPartList[i]) @@ -111,10 +112,10 @@ ME.FIND_ISO_ON_DRIVE(sPartition) NEXT - ELSE ' only one linux partition found - sPartition = Trim(sResults) - ME.FIND_ISO_ON_DRIVE(sPartition) - END IF + 'ELSE ' only one linux partition found + ' sPartition = Trim(sResults) + ' ME.FIND_ISO_ON_DRIVE(sPartition) + 'END IF END @@ -131,7 +132,7 @@ DIM i AS Integer - ClsGlobal.sSourceMnt = "/mnt" &/ "cdrom" + ClsGlobal.sSourceMnt = "/mnt/source" sMountPoint = ClsGlobal.sSourceMnt sCmd = "cat /proc/sys/dev/cdrom/info | grep \"drive name\" |cut -f 2 -d\':\'|xargs -n 2" @@ -214,7 +215,7 @@ 'RETURN FrmSelISO.tlDistroDesc.Text = "<b>Scanning system for installable media. Please wait ...</b>" - +IF Exist(ClsGlobal.sSourceMnt) = FALSE THEN TRY MKDIR ClsGlobal.sSourceMnt WAIT 1 Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Wed Aug 27 14:35:33 2008 @@ -196,9 +196,18 @@ ELSE sBlank = " " END IF - + IF cb.tag = ClsPartSel.sRoot THEN + FOR EACH mt IN MdlPartFrmt.oFsTypes + IF mt.tag = cb.tag THEN + sFstab = sFstab & "\n" & + mt.tag & Space(5) & Trim(mt.text) & Space(5) & "defaults 0 1" & "\n" + END IF + NEXT + ELSE FOR EACH mt IN MdlPartSel.oFsTypes IF mt.Tag = cb.Tag THEN + + IF mt.text = "Do not format" THEN SHELL "export sfmt=$(parted " & sDrive & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $sfmt | cut -f 6 -d \' \'" TO sRes ELSE @@ -206,8 +215,9 @@ END IF END IF NEXT - + sFstab = sFstab & cb.tag & Space(5) & Trim(cb.Text) & Space(5) & Trim(sRes) & Space(5) & ME.fS_oPTIONS(sRes) & Space(5) & " 0 2 " & "\n" + END IF TRY MKDIR ClsGlobal.sTargetMnt &/ cb.Text END IF NEXT @@ -235,6 +245,8 @@ sRes = "vfat" ELSE IF sRes = "fat16" THEN sRes = "vfat" + ELSE IF sRes LIKE "ntfs" THEN + sRes = "ntfs-3g" END IF sFstab = sFstab & "\n" & cb.tag & Space(5) & Trim(cb.text) & Space(5) & Trim(sRes) & Space(5) & ME.fS_oPTIONS(sRes) & " 0 0 " @@ -307,6 +319,8 @@ sMntOpts = "fmask=111,dmask=0,gid=users,shortname=mixed,quiet,user" CASE "ntfs" sMntOpts = "umask=0,gid=users,user" + CASE "ntfs-3g" + sMntOpts = "defaults,allow_other,umask=0,users,nls=utf8,noexec" CASE "ext2", "ext3" sMntOpts = "defaults" CASE ELSE Modified: branches/iVL/MdlSetup.module ============================================================================== --- branches/iVL/MdlSetup.module (original) +++ branches/iVL/MdlSetup.module Wed Aug 27 14:35:33 2008 @@ -211,6 +211,7 @@ DIM sFile AS String[] = Split(File.Load(sCreditFile), "\n") DIM i AS Integer + tlOutput.Text = "" FOR i = 0 TO sFile.count - 1 IF Left(Trim(sFile[i]), Len("M0E-lnx")) = "M0E-lnx" THEN @@ -222,14 +223,13 @@ END IF 'tlOutput.text = tlOutput.text & "<br>" & sFile[i] 'tlOutput.Adjust - tlOutput.Text = tlOutput.Text & Space(12) & " *** " & sFile[i] + tlOutput.Text = tlOutput.Text & " ~ " & sFile[i] ' tlOutput.Text = sFile[i] - 'WAIT 20 + NEXT tlOutput.Width = MdlObjSizer.get_object_width(tlOutput.Text) + 24 - 'tlOutput.Border = Border.Plain - 'FrmInstallSys.tmCredits.Enabled = TRUE - 'FrmInstallSys.tmCredits.Start + WAIT + FrmInstallSys.tmCredits.Enabled = TRUE END Modified: branches/iVL/MdlWinDrives.module ============================================================================== --- branches/iVL/MdlWinDrives.module (original) +++ branches/iVL/MdlWinDrives.module Wed Aug 27 14:35:33 2008 @@ -31,7 +31,7 @@ DIM sSize AS String DIM lbwidth AS Integer DIM cbx AS Integer = FrmPartSel.scrollPartitions.Width / 2 -DIM sDisks, sResults, sLine AS String[] +DIM sDisks, sResults, sLine, wintfs AS String[] DIM sPartNo, sBlank, sPartaddr, sPartSize, sPartType, sTempLine AS String DIM tlwidth AS Integer @@ -124,25 +124,26 @@ NEXT ' now do ntfs partitions the same way sDump1 = "" - sDisks.Clear + 'sDisks.Clear SHELL "probepart | grep -i ntfs | cut -f 1 -d \' \'" TO sDump1 - sDisks = Split(sDump1, "\n") - FOR i = 0 TO sDisks.Count - 1 - sPartNo = Right(sDisks[i], Len(sDisks[i]) - Len("/dev/hda")) + sDump = Trim(sDump1) + wintfs = Split(sDump1, "\n") + FOR i = 0 TO wintfs.Count - 1 + sPartNo = Right(wintfs[i], Len(wintfs[i]) - Len("/dev/hda")) IF Len(sPartNo) > 1 THEN sBlank = "" ELSE sBlank = " " END IF - SHELL "export s=$(parted " & Left(sDisks[i], Len("/dev/hda")) & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $s | cut -f 4 -d \' \'" TO sPartsize + SHELL "export s=$(parted " & Left(wintfs[i], Len("/dev/hda")) & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $s | cut -f 4 -d \' \'" TO sPartsize tl = NEW TextLabel(FrmWinDrives.svWinDrives) WITH tl .y = y .x = x - .text = sDisks[i] & " [ " & sPartsize & " ]" + .text = wintfs[i] & " [ " & sPartsize & " ]" .Width = 200 .Height = 21 - .tag = sDisks[i] + .tag = wintfs[i] .Alignment = Align.Normal END WITH cb = NEW ComboBox(FrmWinDrives.svWinDrives) @@ -151,7 +152,7 @@ .y = tl.top .Width = tl.Width * 0.75 .Height = 21 - .tag = sDisks[i] + .tag = wintfs[i] .Add("/mnt" &/ Right(.tag, Len(.tag) - RInStr(.tag, "/"))) .Add("Do not mount") |
From: <cod...@go...> - 2008-08-27 16:25:44
|
Author: m0e.lnx Date: Wed Aug 27 09:23:07 2008 New Revision: 149 Modified: branches/iVL/MdlPkgSel.module Log: - Fixed description display ( had problems with package names like xine-ui) Modified: branches/iVL/MdlPkgSel.module ============================================================================== --- branches/iVL/MdlPkgSel.module (original) +++ branches/iVL/MdlPkgSel.module Wed Aug 27 09:23:07 2008 @@ -142,14 +142,7 @@ 'Message(sSearch) SHELL "pkgname " & sSearch TO sSearch sSearch = Trim(sSearch) - ' IF InStr(sSearch, "-") = < 3 THEN - - 'sSearch = Left(sSearch, InStr(sSearch, "-") - 1) - - ' ELSE - 'sSearch = Left(sSearch, InStr(sSearch, "-") - InStr(sSearch, "-") - 1) ' this will not work - 'end if SHELL "cat " & ClsGlobal.sSourceMnt &/ "packages" &/ "PACKAGES.TXT | grep -m 8 \'" & sSearch & ":\' | cut -f2- -d \':\'" TO sDump sArr = Split(sDump, "\n") FOR i = 0 TO sArr.count - 1 |
From: <cod...@go...> - 2008-08-27 16:21:42
|
Author: m0e.lnx Date: Wed Aug 27 09:20:59 2008 New Revision: 148 Modified: branches/iVL/.lang/FrmPartSel.pot branches/iVL/.lang/FrmWinDrives.pot branches/iVL/FrmPartSel.class branches/iVL/FrmWinDrives.class branches/iVL/MdlInstallSys.module branches/iVL/MdlPkgSel.module Log: - Fixed description display ( had problems with package names like xine-ui) Modified: branches/iVL/.lang/FrmPartSel.pot ============================================================================== --- branches/iVL/.lang/FrmPartSel.pot (original) +++ branches/iVL/.lang/FrmPartSel.pot Wed Aug 27 09:20:59 2008 @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FrmPartSel.class:172 +#: FrmPartSel.class:168 msgid "Please select the partitions you wish to use and how to use them" msgstr "" -#: FrmPartSel.class:181 +#: FrmPartSel.class:177 msgid "Check this box if you have a Windows installation on your system or any other windows partition (FAT, FAT32, NTFS) that you want auto-mounted as soon as your computer starts" msgstr "" -#: FrmPartSel.class:182 +#: FrmPartSel.class:178 msgid "Detect and Setup Windows partitions for auto-mounting at boot" msgstr "" -#: FrmPartSel.class:187 +#: FrmPartSel.class:183 msgid "Help" msgstr "" Modified: branches/iVL/.lang/FrmWinDrives.pot ============================================================================== --- branches/iVL/.lang/FrmWinDrives.pot (original) +++ branches/iVL/.lang/FrmWinDrives.pot Wed Aug 27 09:20:59 2008 @@ -14,7 +14,7 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FrmWinDrives.class:74 +#: FrmWinDrives.class:69 msgid "Select the windows partitions you would like to mount during boot" msgstr "" Modified: branches/iVL/FrmPartSel.class ============================================================================== --- branches/iVL/FrmPartSel.class (original) +++ branches/iVL/FrmPartSel.class Wed Aug 27 09:20:59 2008 @@ -146,8 +146,4 @@ END -PUBLIC SUB Form_Menu() - MdlInstallSys.WRITE_NEW_FSTAB() - -END Modified: branches/iVL/FrmWinDrives.class ============================================================================== --- branches/iVL/FrmWinDrives.class (original) +++ branches/iVL/FrmWinDrives.class Wed Aug 27 09:20:59 2008 @@ -45,8 +45,3 @@ END -PUBLIC SUB Form_Menu() - - MdlInstallSys.WRITE_NEW_FSTAB() - -END Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Wed Aug 27 09:20:59 2008 @@ -287,11 +287,11 @@ ' now save the file to /etc/fstab - ' ' ' IF Exist(ClsGlobal.sTargetMnt &/ "etc") = FALSE THEN - ' ' ' MKDIR ClsGlobal.sTargetMnt &/ "etc" - ' ' ' END IF - ' ' ' File.Save(ClsGlobal.sTargetMnt &/ "etc" &/ "fstab", SConv(sFstab)) - File.Save("/home/vluser/Area-51/fstab", SConv(sFstab)) + IF Exist(ClsGlobal.sTargetMnt &/ "etc") = FALSE THEN + MKDIR ClsGlobal.sTargetMnt &/ "etc" + END IF + File.Save(ClsGlobal.sTargetMnt &/ "etc" &/ "fstab", SConv(sFstab)) +' ' ' ' ' ' ' ' ' ' ' ' ' File.Save("/home/vluser/Area-51/fstab", SConv(sFstab)) ' test line END Modified: branches/iVL/MdlPkgSel.module ============================================================================== --- branches/iVL/MdlPkgSel.module (original) +++ branches/iVL/MdlPkgSel.module Wed Aug 27 09:20:59 2008 @@ -139,10 +139,12 @@ sSearch = Right(LAST.tag, Len(LAST.tag) - InStr(LAST.tag, "/")) - + 'Message(sSearch) + SHELL "pkgname " & sSearch TO sSearch + sSearch = Trim(sSearch) ' IF InStr(sSearch, "-") = < 3 THEN - sSearch = Left(sSearch, InStr(sSearch, "-") - 1) + 'sSearch = Left(sSearch, InStr(sSearch, "-") - 1) ' ELSE |
From: <cod...@go...> - 2008-08-27 15:14:36
|
Author: m0e.lnx Date: Wed Aug 27 08:13:03 2008 New Revision: 147 Modified: branches/iVL/.lang/#project.pot branches/iVL/.lang/ClsGlobal.pot branches/iVL/.lang/ClsPartSel.pot branches/iVL/.lang/ClsWinDrives.pot branches/iVL/.lang/FMain.pot branches/iVL/.lang/FrmDiskPart.pot branches/iVL/.lang/FrmLicense.pot branches/iVL/.lang/FrmPartScheme.pot branches/iVL/.lang/FrmPartSel.pot branches/iVL/.lang/FrmPkgSel.pot branches/iVL/.lang/FrmSelISO.pot branches/iVL/.lang/FrmSummary.pot branches/iVL/.lang/FrmWinDrives.pot branches/iVL/.lang/MdlCore.pot branches/iVL/.lang/MdlDiskPart.pot branches/iVL/.lang/MdlObjSizer.pot branches/iVL/.lang/MdlPartSel.pot branches/iVL/.lang/MdlPkgSel.pot branches/iVL/.lang/MdlSetup.pot branches/iVL/.lang/MdlSummarize.pot branches/iVL/.lang/MdlWinDrives.pot branches/iVL/FrmLilo.class branches/iVL/FrmPartSel.class branches/iVL/FrmWinDrives.class branches/iVL/MdlInstallSys.module branches/iVL/MdlLiloOsList.module branches/iVL/MdlPartSel.module Log: - Added code to allow a single selection of each mount point - Fixed MdlInstallSys.WRITE_NEW_FSTAB to make sure the correct systax is printed to propperly list all linux and windows paritions on fstab - Changed the way the partition selections are picked up. Rather than looking in the variables class, we now cycle the object[] to find wach object with a value and use that object's .tag and .text property to set the correct values in fstab Modified: branches/iVL/.lang/#project.pot ============================================================================== --- branches/iVL/.lang/#project.pot (original) +++ branches/iVL/.lang/#project.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/.project +# /home/vluser/Area-51/projects/installer/.project # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsGlobal.pot ============================================================================== --- branches/iVL/.lang/ClsGlobal.pot (original) +++ branches/iVL/.lang/ClsGlobal.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/ClsGlobal.class +# /home/vluser/Area-51/projects/installer/ClsGlobal.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsPartSel.pot ============================================================================== --- branches/iVL/.lang/ClsPartSel.pot (original) +++ branches/iVL/.lang/ClsPartSel.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/ClsPartSel.class +# /home/vluser/Area-51/projects/installer/ClsPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsWinDrives.pot ============================================================================== --- branches/iVL/.lang/ClsWinDrives.pot (original) +++ branches/iVL/.lang/ClsWinDrives.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/ClsWinDrives.class +# /home/vluser/Area-51/projects/installer/ClsWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FMain.pot ============================================================================== --- branches/iVL/.lang/FMain.pot (original) +++ branches/iVL/.lang/FMain.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FMain.class +# /home/vluser/Area-51/projects/installer/FMain.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmDiskPart.pot ============================================================================== --- branches/iVL/.lang/FrmDiskPart.pot (original) +++ branches/iVL/.lang/FrmDiskPart.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmDiskPart.class +# /home/vluser/Area-51/projects/installer/FrmDiskPart.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmLicense.pot ============================================================================== --- branches/iVL/.lang/FrmLicense.pot (original) +++ branches/iVL/.lang/FrmLicense.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmLicense.class +# /home/vluser/Area-51/projects/installer/FrmLicense.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPartScheme.pot ============================================================================== --- branches/iVL/.lang/FrmPartScheme.pot (original) +++ branches/iVL/.lang/FrmPartScheme.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmPartScheme.class +# /home/vluser/Area-51/projects/installer/FrmPartScheme.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPartSel.pot ============================================================================== --- branches/iVL/.lang/FrmPartSel.pot (original) +++ branches/iVL/.lang/FrmPartSel.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmPartSel.class +# /home/vluser/Area-51/projects/installer/FrmPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FrmPartSel.class:166 +#: FrmPartSel.class:172 msgid "Please select the partitions you wish to use and how to use them" msgstr "" -#: FrmPartSel.class:175 +#: FrmPartSel.class:181 msgid "Check this box if you have a Windows installation on your system or any other windows partition (FAT, FAT32, NTFS) that you want auto-mounted as soon as your computer starts" msgstr "" -#: FrmPartSel.class:176 +#: FrmPartSel.class:182 msgid "Detect and Setup Windows partitions for auto-mounting at boot" msgstr "" -#: FrmPartSel.class:181 +#: FrmPartSel.class:187 msgid "Help" msgstr "" Modified: branches/iVL/.lang/FrmPkgSel.pot ============================================================================== --- branches/iVL/.lang/FrmPkgSel.pot (original) +++ branches/iVL/.lang/FrmPkgSel.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmPkgSel.class +# /home/vluser/Area-51/projects/installer/FrmPkgSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmSelISO.pot ============================================================================== --- branches/iVL/.lang/FrmSelISO.pot (original) +++ branches/iVL/.lang/FrmSelISO.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmSelISO.class +# /home/vluser/Area-51/projects/installer/FrmSelISO.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmSummary.pot ============================================================================== --- branches/iVL/.lang/FrmSummary.pot (original) +++ branches/iVL/.lang/FrmSummary.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmSummary.class +# /home/vluser/Area-51/projects/installer/FrmSummary.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmWinDrives.pot ============================================================================== --- branches/iVL/.lang/FrmWinDrives.pot (original) +++ branches/iVL/.lang/FrmWinDrives.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmWinDrives.class +# /home/vluser/Area-51/projects/installer/FrmWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. @@ -14,7 +14,7 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FrmWinDrives.class:68 +#: FrmWinDrives.class:74 msgid "Select the windows partitions you would like to mount during boot" msgstr "" Modified: branches/iVL/.lang/MdlCore.pot ============================================================================== --- branches/iVL/.lang/MdlCore.pot (original) +++ branches/iVL/.lang/MdlCore.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlCore.module +# /home/vluser/Area-51/projects/installer/MdlCore.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlDiskPart.pot ============================================================================== --- branches/iVL/.lang/MdlDiskPart.pot (original) +++ branches/iVL/.lang/MdlDiskPart.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlDiskPart.module +# /home/vluser/Area-51/projects/installer/MdlDiskPart.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlObjSizer.pot ============================================================================== --- branches/iVL/.lang/MdlObjSizer.pot (original) +++ branches/iVL/.lang/MdlObjSizer.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlObjSizer.module +# /home/vluser/Area-51/projects/installer/MdlObjSizer.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPartSel.pot ============================================================================== --- branches/iVL/.lang/MdlPartSel.pot (original) +++ branches/iVL/.lang/MdlPartSel.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlPartSel.module +# /home/vluser/Area-51/projects/installer/MdlPartSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPkgSel.pot ============================================================================== --- branches/iVL/.lang/MdlPkgSel.pot (original) +++ branches/iVL/.lang/MdlPkgSel.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlPkgSel.module +# /home/vluser/Area-51/projects/installer/MdlPkgSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSetup.pot ============================================================================== --- branches/iVL/.lang/MdlSetup.pot (original) +++ branches/iVL/.lang/MdlSetup.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlSetup.module +# /home/vluser/Area-51/projects/installer/MdlSetup.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSummarize.pot ============================================================================== --- branches/iVL/.lang/MdlSummarize.pot (original) +++ branches/iVL/.lang/MdlSummarize.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlSummarize.module +# /home/vluser/Area-51/projects/installer/MdlSummarize.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlWinDrives.pot ============================================================================== --- branches/iVL/.lang/MdlWinDrives.pot (original) +++ branches/iVL/.lang/MdlWinDrives.pot Wed Aug 27 08:13:03 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlWinDrives.module +# /home/vluser/Area-51/projects/installer/MdlWinDrives.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/FrmLilo.class ============================================================================== --- branches/iVL/FrmLilo.class (original) +++ branches/iVL/FrmLilo.class Wed Aug 27 08:13:03 2008 @@ -33,7 +33,7 @@ ME.tlList.text = "The following Operating Systems have been detected on this computer. Choose your desired option " & "for each one of them by clicking on each tab. To proceed with the default pre-set values, simply click \'" & FMain.btnext.text & "\'" ME.tlList.Adjust -ME.TabStrip1.Index = 0 +ME.TabStrip1.Index = MdlLiloOsList.iVltag MdlLiloOsList.bVlCliOption = FALSE Modified: branches/iVL/FrmPartSel.class ============================================================================== --- branches/iVL/FrmPartSel.class (original) +++ branches/iVL/FrmPartSel.class Wed Aug 27 08:13:03 2008 @@ -145,3 +145,9 @@ END + +PUBLIC SUB Form_Menu() + + MdlInstallSys.WRITE_NEW_FSTAB() + +END Modified: branches/iVL/FrmWinDrives.class ============================================================================== --- branches/iVL/FrmWinDrives.class (original) +++ branches/iVL/FrmWinDrives.class Wed Aug 27 08:13:03 2008 @@ -44,3 +44,9 @@ END + +PUBLIC SUB Form_Menu() + + MdlInstallSys.WRITE_NEW_FSTAB() + +END Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Wed Aug 27 08:13:03 2008 @@ -89,7 +89,7 @@ DIM sWinMntPnt AS String DIM sFstab AS String DIM sPartFmt AS String - DIM cb AS ComboBox + DIM cb, mt AS ComboBox DIM sRes, sDrive, sBlank, sPartNo AS String @@ -157,46 +157,57 @@ -sFstab = sFstab & gb.NewLine & -ClsPartSel.sRoot & " / " & LCase(ClsPartSel.fRoot) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fRoot)) & " 0 1" & gb.NewLine - -IF ClsPartSel.sHome THEN - sFstab = sFstab & gb.NewLine & ClsPartSel.sHome & " /home " & LCase(ClsPartSel.fhome) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fhome)) & " 0 2" -END IF -IF ClsPartSel.sUsr THEN - sFstab = sFstab & gb.NewLine & ClsPartSel.sUsr & " /usr " & LCase(ClsPartSel.fUsr) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fUsr)) & " 0 2 " -END IF -IF ClsPartSel.sOpt THEN - sFstab = sFstab & gb.NewLine & ClsPartSel.sopt & " /opt " & LCase(ClsPartSel.fOpt) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fOpt)) & " 0 2 " -END IF -IF ClsPartSel.sVar THEN - sFstab = sFstab & gb.NewLine & ClsPartSel.sVar & " /var " & LCase(ClsPartSel.fVar) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fVar)) & " 0 2 " -END IF -IF ClsPartSel.sTmp THEN - sFstab = sFstab & gb.NewLine & ClsPartSel.sTmp & " /tmp " & LCase(ClsPartSel.fTmp) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fTmp)) & " 0 2 " -END IF -IF ClsPartSel.sLinuxPart THEN - FOR i = 0 TO ClsPartSel.sLinuxPart.Count - 1 - sLinPart = ClsPartSel.sLinuxPart[i] - sLinMntPnt = ClsPartSel.sLinuxPart[i] - NEXT -ENDIF +sFstab = sFstab & gb.NewLine +' ' ' ClsPartSel.sRoot & Space(5) & "/" & Space(5) & LCase(ClsPartSel.fRoot) & Space(5) & ME.fS_oPTIONS(LCase(ClsPartSel.fRoot)) & Space(5) & "0 1" & gb.NewLine +' ' ' +' ' ' IF ClsPartSel.sHome THEN +' ' ' sFstab = sFstab & gb.NewLine & ClsPartSel.sHome & " /home " & LCase(ClsPartSel.fhome) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fhome)) & " 0 2" +' ' ' END IF +' ' ' IF ClsPartSel.sUsr THEN +' ' ' sFstab = sFstab & gb.NewLine & ClsPartSel.sUsr & " /usr " & LCase(ClsPartSel.fUsr) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fUsr)) & " 0 2 " +' ' ' END IF +' ' ' IF ClsPartSel.sOpt THEN +' ' ' sFstab = sFstab & gb.NewLine & ClsPartSel.sopt & " /opt " & LCase(ClsPartSel.fOpt) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fOpt)) & " 0 2 " +' ' ' END IF +' ' ' IF ClsPartSel.sVar THEN +' ' ' sFstab = sFstab & gb.NewLine & ClsPartSel.sVar & " /var " & LCase(ClsPartSel.fVar) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fVar)) & " 0 2 " +' ' ' END IF +' ' ' IF ClsPartSel.sTmp THEN +' ' ' sFstab = sFstab & gb.NewLine & ClsPartSel.sTmp & " /tmp " & LCase(ClsPartSel.fTmp) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fTmp)) & " 0 2 " +' ' ' END IF +' ' ' IF ClsPartSel.sLinuxPart THEN +' ' ' FOR i = 0 TO ClsPartSel.sLinuxPart.Count - 1 +' ' ' sLinPart = ClsPartSel.sLinuxPart[i] +' ' ' sLinMntPnt = ClsPartSel.sLinuxPart[i] +' ' ' NEXT +' ' ' ENDIF ' nOW LETS' GET THE REST OF THE PARTITIONS IN THERE FOR EACH CB IN MdlPartSel.oMountPoints + IF cb.text <> "Not Used" THEN + - IF InStr(cb.text, "/mnt/") = TRUE THEN + 'IF Left(Trim(cb.text), Len("/mnt")) = "/mnt" THEN sDrive = Left(cb.tag, Len("/dev/hda")) sPartNo = Right(cb.tag, Len(cb.tag) - Len(sDrive)) + IF Len(sPartNo) > 1 THEN sBlank = "" ELSE sBlank = " " END IF - - SHELL "export sfmt=$(parted " & sDrive & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $sfmt | cut -f 6 -d \' \'" TO sRes + + FOR EACH mt IN MdlPartSel.oFsTypes + IF mt.Tag = cb.Tag THEN + IF mt.text = "Do not format" THEN + SHELL "export sfmt=$(parted " & sDrive & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $sfmt | cut -f 6 -d \' \'" TO sRes + ELSE + sRes = LCase(mt.text) + END IF + END IF + NEXT - sFstab = sFstab & gb.NewLine & cb.tag & Space(1) & cb.Text & Space(1) & sRes & Space(1) & ME.fS_oPTIONS(sRes) & Space(1) & " 0 2 " + sFstab = sFstab & cb.tag & Space(5) & Trim(cb.Text) & Space(5) & Trim(sRes) & Space(5) & ME.fS_oPTIONS(sRes) & Space(5) & " 0 2 " & "\n" TRY MKDIR ClsGlobal.sTargetMnt &/ cb.Text END IF NEXT @@ -208,6 +219,7 @@ "#/dev/hda1 /mnt/win ntfs umask=0 0 0\n" ' LET'S GET THE WINDOWS PARTITIONS IN HERE + IF MdlWinDrives.oWMntPoints THEN FOR EACH cb IN MdlWinDrives.oWMntPoints IF cb.text <> "Do not mount" THEN sDrive = Left(cb.tag, Len("/dev/hda")) @@ -218,14 +230,19 @@ sBlank = " " END IF SHELL "export sfmt=$(parted " & sDrive & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $sfmt | cut -f 6 -d \' \'" TO sRes - IF sRes = "fat32" OR sRes = "fat16" THEN sRes = "vfat" + sRes = Trim(sRes) + IF sRes = "fat32" THEN + sRes = "vfat" + ELSE IF sRes = "fat16" THEN + sRes = "vfat" + END IF sFstab = sFstab & "\n" & - cb.tag & Space(1) & cb.text & Space(1) & sRes & Space(1) & ME.fS_oPTIONS(sRes) & " 0 0 " + cb.tag & Space(5) & Trim(cb.text) & Space(5) & Trim(sRes) & Space(5) & ME.fS_oPTIONS(sRes) & " 0 0 " END IF ' create the mount point for the target TRY MKDIR ClsGlobal.sTargetMnt &/ cb.Text NEXT - + END IF sFstab = sFstab & "\n\n" & "# Floppy disks \n" & @@ -270,10 +287,11 @@ ' now save the file to /etc/fstab - IF Exist(ClsGlobal.sTargetMnt &/ "etc") = FALSE THEN - MKDIR ClsGlobal.sTargetMnt &/ "etc" - END IF - File.Save(ClsGlobal.sTargetMnt &/ "etc" &/ "fstab", SConv(sFstab)) + ' ' ' IF Exist(ClsGlobal.sTargetMnt &/ "etc") = FALSE THEN + ' ' ' MKDIR ClsGlobal.sTargetMnt &/ "etc" + ' ' ' END IF + ' ' ' File.Save(ClsGlobal.sTargetMnt &/ "etc" &/ "fstab", SConv(sFstab)) + File.Save("/home/vluser/Area-51/fstab", SConv(sFstab)) END Modified: branches/iVL/MdlLiloOsList.module ============================================================================== --- branches/iVL/MdlLiloOsList.module (original) +++ branches/iVL/MdlLiloOsList.module Wed Aug 27 08:13:03 2008 @@ -27,6 +27,7 @@ PUBLIC arrWinInstalls AS Object[] PUBLIC arrWinLabels AS Object[] PRIVATE sTmpTxt AS String +PUBLIC iVlTag AS Integer PUBLIC SUB LIST_WIN_INSTALL_CHOICES(iCurrentTabCnt AS Integer) DIM sFatList AS String @@ -173,6 +174,11 @@ NEXT END IF + + + + + END PUBLIC SUB WinLbl_keyrelease() @@ -364,8 +370,9 @@ .tag = arrLinux[i] .Background = Color.Background END WITH - + ME.iVlTag = FrmLilo.TabStrip1.Index END IF + END IF Modified: branches/iVL/MdlPartSel.module ============================================================================== --- branches/iVL/MdlPartSel.module (original) +++ branches/iVL/MdlPartSel.module Wed Aug 27 08:13:03 2008 @@ -171,12 +171,12 @@ .y = y .ReadOnly = TRUE .Width = tl.Width - .Add("XFS") - .Add("ReiserFS") - .Add("Ext2") - .Add("Ext3") - .Add("JFS") .Add("Do not format") + .Add("reiserfs") + .Add("ext2") + .Add("ext3") + .Add("jfs") + .Add("xfs") '.Add("swap") IF InStr(Trim(FrmSelISO.lstInstallableImg.Text), .Tag) THEN .Enabled = FALSE @@ -287,6 +287,16 @@ 'DIM sTag AS String = LAST.tag 'DIM sText AS String = Trim(LAST.text) + FOR EACH sdropdwn IN ME.oMountPoints + IF LAST.text <> "Not Used" AND LAST.text = sdropdwn.Text AND LAST.tag <> sdropdwn.tag THEN + + Message.Error("Please select only one " & LAST.text & " partition") + LAST.text = "Not Used" + STOP EVENT + END IF + NEXT + + FOR EACH sdropdwn IN oFsTypes IF sdropdwn.tag = LAST.tag THEN sdropdwn.Enabled = TRUE @@ -295,6 +305,8 @@ END IF sdropdwn.Text = "Do not format" END IF + + NEXT SELECT CASE LAST.text |
From: <cod...@go...> - 2008-08-26 17:17:11
|
Author: M0E.lnx Date: Tue Aug 26 10:16:38 2008 New Revision: 146 Modified: branches/iVL/.lang/ClsGlobal.pot branches/iVL/.lang/ClsPartSel.pot branches/iVL/.lang/ClsWinDrives.pot branches/iVL/.lang/FrmLicense.pot branches/iVL/.lang/FrmPkgSel.pot branches/iVL/.lang/FrmSummary.pot branches/iVL/.lang/FrmWinDrives.pot branches/iVL/.lang/MdlCore.pot branches/iVL/.lang/MdlObjSizer.pot branches/iVL/.lang/MdlPkgSel.pot branches/iVL/.lang/MdlSetup.pot branches/iVL/.lang/MdlSummarize.pot branches/iVL/MdlInstallSys.module branches/iVL/MdlWinDrives.module Log: - Added new method of detecting ntfs partitions (similar to fat) - Added code to write FAT16, FAT32, NTFS partitions to /etc/fstab - Added code to create mount points for win partitions on target Modified: branches/iVL/.lang/ClsGlobal.pot ============================================================================== --- branches/iVL/.lang/ClsGlobal.pot (original) +++ branches/iVL/.lang/ClsGlobal.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/ClsGlobal.class +# /home/moe/area-51/projects/installer/ClsGlobal.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsPartSel.pot ============================================================================== --- branches/iVL/.lang/ClsPartSel.pot (original) +++ branches/iVL/.lang/ClsPartSel.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/ClsPartSel.class +# /home/moe/area-51/projects/installer/ClsPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsWinDrives.pot ============================================================================== --- branches/iVL/.lang/ClsWinDrives.pot (original) +++ branches/iVL/.lang/ClsWinDrives.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/ClsWinDrives.class +# /home/moe/area-51/projects/installer/ClsWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmLicense.pot ============================================================================== --- branches/iVL/.lang/FrmLicense.pot (original) +++ branches/iVL/.lang/FrmLicense.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/FrmLicense.class +# /home/moe/area-51/projects/installer/FrmLicense.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPkgSel.pot ============================================================================== --- branches/iVL/.lang/FrmPkgSel.pot (original) +++ branches/iVL/.lang/FrmPkgSel.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/FrmPkgSel.class +# /home/moe/area-51/projects/installer/FrmPkgSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmSummary.pot ============================================================================== --- branches/iVL/.lang/FrmSummary.pot (original) +++ branches/iVL/.lang/FrmSummary.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/FrmSummary.class +# /home/moe/area-51/projects/installer/FrmSummary.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmWinDrives.pot ============================================================================== --- branches/iVL/.lang/FrmWinDrives.pot (original) +++ branches/iVL/.lang/FrmWinDrives.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/FrmWinDrives.class +# /home/moe/area-51/projects/installer/FrmWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlCore.pot ============================================================================== --- branches/iVL/.lang/MdlCore.pot (original) +++ branches/iVL/.lang/MdlCore.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/MdlCore.module +# /home/moe/area-51/projects/installer/MdlCore.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlObjSizer.pot ============================================================================== --- branches/iVL/.lang/MdlObjSizer.pot (original) +++ branches/iVL/.lang/MdlObjSizer.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/MdlObjSizer.module +# /home/moe/area-51/projects/installer/MdlObjSizer.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPkgSel.pot ============================================================================== --- branches/iVL/.lang/MdlPkgSel.pot (original) +++ branches/iVL/.lang/MdlPkgSel.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/MdlPkgSel.module +# /home/moe/area-51/projects/installer/MdlPkgSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSetup.pot ============================================================================== --- branches/iVL/.lang/MdlSetup.pot (original) +++ branches/iVL/.lang/MdlSetup.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/MdlSetup.module +# /home/moe/area-51/projects/installer/MdlSetup.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSummarize.pot ============================================================================== --- branches/iVL/.lang/MdlSummarize.pot (original) +++ branches/iVL/.lang/MdlSummarize.pot Tue Aug 26 10:16:38 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/MdlSummarize.module +# /home/moe/area-51/projects/installer/MdlSummarize.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Tue Aug 26 10:16:38 2008 @@ -206,14 +206,26 @@ "#/dev/hda1 /mnt/dos msdos umask=0 0 0 \n" & "#/dev/hda1 /mnt/win vfat fmask=111,dmask=0,quiet,shortname=mixed,user 0 0 \n" & "#/dev/hda1 /mnt/win ntfs umask=0 0 0\n" - IF ClsWinDrives.sWinDrives THEN - FOR i = 0 TO ClsWinDrives.sWinDrives.Count - 1 - sWinPart = Trim(Left(ClsWinDrives.sWinDrives[i], InStr(ClsWinDrives.sWinDrives[i], "|") - 1)) - sWinMntPnt = Trim(Right(ClsWinDrives.sWinDrives[i], Len(ClsWinDrives.sWinDrives[i]) - InStr(ClsWinDrives.sWinDrives[i], "|"))) - 'Message("Mount " & sWinPart & " to " & sWinMntPnt) - ' if this is right... then add it to the file - NEXT - END IF + +' LET'S GET THE WINDOWS PARTITIONS IN HERE +FOR EACH cb IN MdlWinDrives.oWMntPoints + IF cb.text <> "Do not mount" THEN + sDrive = Left(cb.tag, Len("/dev/hda")) + spartNo = Right(cb.tag, Len(cb.tag) - Len(sDrive)) + IF Len(sPartNo) > 1 THEN + sBlank = "" + ELSE + sBlank = " " + END IF + SHELL "export sfmt=$(parted " & sDrive & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $sfmt | cut -f 6 -d \' \'" TO sRes + IF sRes = "fat32" OR sRes = "fat16" THEN sRes = "vfat" + sFstab = sFstab & "\n" & + cb.tag & Space(1) & cb.text & Space(1) & sRes & Space(1) & ME.fS_oPTIONS(sRes) & " 0 0 " + END IF + ' create the mount point for the target + TRY MKDIR ClsGlobal.sTargetMnt &/ cb.Text +NEXT + sFstab = sFstab & "\n\n" & "# Floppy disks \n" & @@ -251,15 +263,7 @@ END IF NEXT - - -' ' ' IF ClsPartSel.sSwap THEN -' ' ' ' take a second here to throw the swap line to the current running system -' ' ' SHELL "echo \'" & ClsPartSel.sSwap & Space(5) & "none" & Space(5) & "swap" & Space(5) & "sw" & Space(5) & "0" & Space(5) & "0" & "\' >> /etc/fstab" WAIT -' ' ' 'write the same line to the future fstab -' ' ' sFstab = sFstab & gb.NewLine & -' ' ' ClsPartSel.sSwap & Space(5) & "none" & Space(5) & "swap" & Space(5) & "sw" & Space(5) & "0" & Space(5) & "0" -' ' ' END IF + sFstab = sFstab & "\n" ' Wheewww!... that's the whole fstab there... Please fix the win partitions @@ -281,7 +285,7 @@ SELECT CASE LCase(sType) CASE "reiserfs" sMntOpts = "noatime" - CASE "vfat" + CASE "vfat", "fat32", "fat16" sMntOpts = "fmask=111,dmask=0,gid=users,shortname=mixed,quiet,user" CASE "ntfs" sMntOpts = "umask=0,gid=users,user" @@ -363,7 +367,7 @@ FrmInstallSys.pbInstallProg2.Value = 1 'Message.Info("Vectorlinux is now installed in your system. Please click next to configure it.") FrmInstallSys.tlBanner.Text = "Vectorlinux is now installed in your system. Please click next to configure it." - FrmInstallSys.tlCurrPkg.Text = "packages have been Installed. Please click next to move on to System Configuration." + FrmInstallSys.tlCurrPkg.Text = "packages have been installed in your system. Please click next to configure it." WITH FMain .btQuit.Enabled = TRUE .btQuit.ForeColor = Color.Black Modified: branches/iVL/MdlWinDrives.module ============================================================================== --- branches/iVL/MdlWinDrives.module (original) +++ branches/iVL/MdlWinDrives.module Tue Aug 26 10:16:38 2008 @@ -123,146 +123,52 @@ y = y + tl.Height + 4 NEXT ' now do ntfs partitions the same way - - - - END IF - RETURN - - - - - sDump1 = "" - SHELL "probepart | grep -e \'/dev\' | grep -v \' Ext\' | grep -v \'raid autodetect\' | grep -v \' Linux\' | cut -f 1 -d \' \' | sed -r \'s/Disk//g\'" TO sdump1 - File.Save(Temp("all"), Trim(sDump1)) - - vObj = NEW Object[] -sDump1 = File.Load(Temp("all")) -sDump1 = Trim(sDump1) -'Message(sDump1) - IF sDump1 <> "" THEN - sDump1 = Trim(sDump1) - 'y = y + tl.Height * 2 + 4 - ' create a new text label just to label the separation between windows and linux partitions - tl = NEW TextLabel(FrmWinDrives.svWinDrives) AS "Separator" - WITH tl - .Text = "<b>Windows Partitions Detected</b>" - .Height = 27 - .Width = MdlObjSizer.get_object_width(.Text) - .x = FrmWinDrives.svWinDrives.Width / 2 - (.Width / 2) - .y = y - cbx = .x + .Width - (.Width / 2) - END WITH - - y = y + tl.Height + 8 - - tl = NEW TextLabel(FrmWinDrives.svWinDrives) AS "Headers" - WITH tl - .x = x - .y = y - .text = "<B>PARTITION</B>" - .Width = MdlObjSizer.get_object_width(.Text) * 1.5 - .Height = 27 - END WITH - cbx = x + (tl.Width) * 2 - tl = NEW TextLabel(FrmWinDrives.svWinDrives) AS "Headers" - WITH tl - .x = cbx - .y = y - .text = "<b>MOUNT TO </B>" - .Width = MdlObjSizer.get_object_width(.Text) * 1.5 - .Height = 27 - END WITH - y = y + tl.Height + 8 - - 'END IF - IF InStr(sDump1, gb.NewLine) THEN ' more than one partition found - sPartList = Split(sDump1, gb.NewLine) ' multiple partitions found - 'initiate the array - ClsWinDrives.sWinDrives = NEW String[] - FOR i = 0 TO sPartList.Count - 1 - sPart = Right(sPartList[i], Len(sPartList[i]) - RInStr(sPartList[i], "/")) - - SHELL "mkdir /mnt" &/ spart & " && mount " & Trim(sPartList[i]) & Space(1) & "/mnt" &/ sPart WAIT - ' get the size using df -h | grep sPart and some sed - ' will embed some bash, but should probabbly be fixed - SHELL "export " & sPart & "=$(df -h | grep " & sPart & ") && echo $" & sPart & " | cut -f 2 -d \' \'" TO sSize - SHELL "umount /mnt" &/ spart WAIT - 'SHELL "rm -rf /mnt" &/ spart WAIT - TRY RMDIR "/mnt" &/ sPart - - - tl = NEW TextLabel(FrmWinDrives.svWinDrives) AS "WinPartitions" + sDump1 = "" + sDisks.Clear + SHELL "probepart | grep -i ntfs | cut -f 1 -d \' \'" TO sDump1 + sDisks = Split(sDump1, "\n") + FOR i = 0 TO sDisks.Count - 1 + sPartNo = Right(sDisks[i], Len(sDisks[i]) - Len("/dev/hda")) + IF Len(sPartNo) > 1 THEN + sBlank = "" + ELSE + sBlank = " " + END IF + SHELL "export s=$(parted " & Left(sDisks[i], Len("/dev/hda")) & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $s | cut -f 4 -d \' \'" TO sPartsize + tl = NEW TextLabel(FrmWinDrives.svWinDrives) WITH tl + .y = y + .x = x + .text = sDisks[i] & " [ " & sPartsize & " ]" + .Width = 200 + .Height = 21 + .tag = sDisks[i] + .Alignment = Align.Normal + END WITH + cb = NEW ComboBox(FrmWinDrives.svWinDrives) + WITH cb + .x = cbx + .y = tl.top + .Width = tl.Width * 0.75 + .Height = 21 + .tag = sDisks[i] + .Add("/mnt" &/ Right(.tag, Len(.tag) - RInStr(.tag, "/"))) + .Add("Do not mount") - .Text = sPartList[i] & " ( " & sSize & " )" - .Width = MdlObjSizer.get_object_width(.Text) ' * 1.5 - .Tag = sPartList[i] - .Height = 27 - .x = x 'FrmPartSel.tlPartRow.Left - .y = y - - IF .Width > lbwidth THEN - lbwidth = .Width - ELSE - .Width = lbwidth - END IF - ME.vObj.Add(tl) - END WITH - - - ClsWinDrives.sWinDrives.Add(tl.Tag & "|" & "/mnt/" & sPart) - ' now create the combobox to select the mount point - cb = NEW ComboBox(FrmWinDrives.svWinDrives) AS "WinMntPoints" - oWMntPoints = NEW Object[] - WITH cb - .Tag = sPartList[i] - .Height = 27 - '.x = FrmPartSel.scrollPartitions.Width / 2 'lbwidth + 12 - .x = cbx 'x + tl.Width + 8 'FrmPartSel.tlPartRow2.Left - .y = tl.Top - .Add("/mnt" &/ sPart) - .Add("Do not mount") - .Width = MdlObjSizer.get_object_width("Do not mount") * 2 - .ReadOnly = FALSE -' .border = border.Plain - ME.oWMntPoints.Add(cb) - END WITH - - y = y + tl.Height + 4 - ' + '.ReadOnly = TRUE + END WITH + ME.oWMntPoints.Add(cb) - NEXT - - + + y = y + tl.Height + 4 + NEXT - ELSE ' only one win partition found - - - sPart = Right(sDump1, Len(sDump1) - RInStr(sDump1, "/")) - 'Message(sPart) - SHELL "mkdir -p /mnt" &/ spart & " && mount " & Trim(sDump1) & Space(1) & "/mnt" &/ sPart WAIT - SHELL "export " & sPart & "=$(df -h | grep " & sPart & ") && echo $" & sPart & " | cut -f 2 -d \' \'" TO sSize - sSize = Trim(sSize) - 'Message(sSize) - - - y = y + tl.Height + 4 - tl = NEW TextLabel(FrmWinDrives.svWinDrives) AS "WinPartitions" - WITH tl - .Text = sDump1 & " ( " & sSize & " )" - .tag = sDump1 - .Height = 27 - .Width = MdlObjSizer.get_object_width(.Text) * 1.5 - .x = FrmPartSel.tlPartRow.Left - .y = y - - END WITH - SHELL "umount /mnt" &/ spart WAIT - SHELL "rm -rf /mnt" &/ spart WAIT - END IF + + + 'END IF + ELSE ' no widnows partitions found tl = NEW TextLabel(FrmWinDrives.svWinDrives) |
From: <cod...@go...> - 2008-08-26 15:09:55
|
Author: M0E.lnx Date: Tue Aug 26 08:09:24 2008 New Revision: 145 Modified: branches/iVL/.lang/FrmPartSel.pot branches/iVL/.lang/MdlWinDrives.pot branches/iVL/FrmPartSel.class branches/iVL/MdlWinDrives.module Log: - Revisited the FAT/FAT32 partition detecting/listing module Modified: branches/iVL/.lang/FrmPartSel.pot ============================================================================== --- branches/iVL/.lang/FrmPartSel.pot (original) +++ branches/iVL/.lang/FrmPartSel.pot Tue Aug 26 08:09:24 2008 @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FrmPartSel.class:172 +#: FrmPartSel.class:166 msgid "Please select the partitions you wish to use and how to use them" msgstr "" -#: FrmPartSel.class:181 +#: FrmPartSel.class:175 msgid "Check this box if you have a Windows installation on your system or any other windows partition (FAT, FAT32, NTFS) that you want auto-mounted as soon as your computer starts" msgstr "" -#: FrmPartSel.class:182 +#: FrmPartSel.class:176 msgid "Detect and Setup Windows partitions for auto-mounting at boot" msgstr "" -#: FrmPartSel.class:187 +#: FrmPartSel.class:181 msgid "Help" msgstr "" Modified: branches/iVL/.lang/MdlWinDrives.pot ============================================================================== --- branches/iVL/.lang/MdlWinDrives.pot (original) +++ branches/iVL/.lang/MdlWinDrives.pot Tue Aug 26 08:09:24 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/MdlWinDrives.module +# /home/moe/area-51/projects/installer/MdlWinDrives.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/FrmPartSel.class ============================================================================== --- branches/iVL/FrmPartSel.class (original) +++ branches/iVL/FrmPartSel.class Tue Aug 26 08:09:24 2008 @@ -41,12 +41,6 @@ .scrollPartitions.Resize(.tlBanner.Width + 4 + .btHelp.Width, .ClientHeight - .tlBanner.Height - (cbDoWin.Height * 3)) .cbDoWin.Move(.scrollPartitions.Left, .ClientHeight - .cbDoWin.Height - 8) .btHelp.Move(.tlBanner.Left + .tlBanner.Width + 4, .tlBanner.top) '+ (.tlBanner.Height / 3)) -' .tlPartRow.Move(4, 4) -' .tlPartRow2.Move(.tlPartRow.Left + (.tlPartRow.Width * 1.5), .tlPartRow.top) -' .tlPartRow3.Move(.tlPartRow2.left + (.tlPartRow3.Width * 1.9), .tlPartRow.top) - ' .tlPartRow.Move(4, 4) - ' .tlPartRow3.Move(ME.scrollPartitions.Left + ME.scrollPartitions.Width - (.tlPartRow3.Width * 2), .tlpartrow.top) - ' .tlPartRow2.Move((.tlPartRow.Width + .tlPartRow3.Left) / 3, tlpartrow.top) END WITH Modified: branches/iVL/MdlWinDrives.module ============================================================================== --- branches/iVL/MdlWinDrives.module (original) +++ branches/iVL/MdlWinDrives.module Tue Aug 26 08:09:24 2008 @@ -24,23 +24,116 @@ DIM cb AS ComboBox DIM y AS Integer DIM x AS Integer -DIM i AS Integer -DIM sDump1 AS String +DIM i, ii AS Integer +DIM sDump1, sDump2 AS String DIM sPartList AS String[] DIM sPart AS String DIM sSize AS String DIM lbwidth AS Integer DIM cbx AS Integer = FrmPartSel.scrollPartitions.Width / 2 +DIM sDisks, sResults, sLine AS String[] +DIM sPartNo, sBlank, sPartaddr, sPartSize, sPartType, sTempLine AS String +DIM tlwidth AS Integer x = 4 y = 8 +ME.oWMntPoints = NEW Object[] ' now, do the WIN partitions ' MOVE THESE PARTITIONS TO A DIFFERENT WINDOW. ' THESE ARE ONLY NEEDED FOR FSTAB + + SHELL "probepart | grep -i fat | cut -f 1 -d \' \'" TO sDump1 + IF sDump1 <> "" THEN + sDump1 = Trim(sDump1) + 'y = y + tl.Height * 2 + 4 + ' create a new text label just to label the separation between windows and linux partitions + tl = NEW TextLabel(FrmWinDrives.svWinDrives) AS "Separator" + WITH tl + .Text = "<b>Windows Partitions Detected</b>" + .Height = 27 + .Width = MdlObjSizer.get_object_width(.Text) + .x = FrmWinDrives.svWinDrives.Width / 2 - (.Width / 2) + .y = y + cbx = .x + .Width - (.Width / 2) + + + END WITH + + y = y + tl.Height + 8 + + tl = NEW TextLabel(FrmWinDrives.svWinDrives) AS "Headers" + WITH tl + .x = x + .y = y + .text = "<B>PARTITION</B>" + .Width = MdlObjSizer.get_object_width(.Text) * 1.5 + .Height = 27 + END WITH + cbx = x + (tl.Width) * 2 + tlwidth = tl.Width + tl = NEW TextLabel(FrmWinDrives.svWinDrives) AS "Headers" + WITH tl + .x = cbx + .y = y + .text = "<b>MOUNT TO </B>" + .Width = MdlObjSizer.get_object_width(.Text) * 1.5 + .Height = 27 + END WITH + y = y + tl.Height + 8 + 'END IF + ' Begin listing individual partitions + sDisks = Split(sDump1, "\n") + 'Message(sDump1) + FOR i = 0 TO sDisks.count - 1 + sPartNo = Right(sDisks[i], Len(sDisks[i]) - Len("/dev/hda")) + IF Len(sPartNo) > 1 THEN + sBlank = "" + ELSE + sBlank = " " + END IF + SHELL "export s=$(parted " & Left(sDisks[i], Len("/dev/hda")) & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $s | cut -f 4 -d \' \'" TO sPartsize + tl = NEW TextLabel(FrmWinDrives.svWinDrives) + WITH tl + .y = y + .x = x + .text = sDisks[i] & " [ " & sPartsize & " ]" + .Width = 200 + .Height = 21 + .tag = sDisks[i] + .Alignment = Align.Normal + END WITH + cb = NEW ComboBox(FrmWinDrives.svWinDrives) + WITH cb + .x = cbx + .y = tl.top + .Width = tl.Width * 0.75 + .Height = 21 + .tag = sDisks[i] + .Add("/mnt" &/ Right(.tag, Len(.tag) - RInStr(.tag, "/"))) + .Add("Do not mount") + + '.ReadOnly = TRUE + END WITH + ME.oWMntPoints.Add(cb) + + + + y = y + tl.Height + 4 + NEXT + ' now do ntfs partitions the same way + + + + END IF + RETURN + + + + sDump1 = "" - SHELL "PATH=$PATH:/sbin && probepart | grep -e \'/dev\' | grep -v \' Ext\' | grep -v \'raid autodetect\' | grep -v \' Linux\' | cut -f 1 -d \' \' | sed -r \'s/Disk//g\'" TO sdump1 + SHELL "probepart | grep -e \'/dev\' | grep -v \' Ext\' | grep -v \'raid autodetect\' | grep -v \' Linux\' | cut -f 1 -d \' \' | sed -r \'s/Disk//g\'" TO sdump1 File.Save(Temp("all"), Trim(sDump1)) vObj = NEW Object[] |
From: <cod...@go...> - 2008-08-26 04:28:52
|
Author: uelsk8s Date: Mon Aug 25 21:28:18 2008 New Revision: 144 Modified: branches/iVL/.project branches/iVL/FMain.class branches/iVL/MdlConfLilo.module branches/iVL/MdlInstallCustom.module branches/iVL/MdlInstallSys.module branches/iVL/MdlPartSel.module branches/iVL/installer.gambas Log: changed post install script. initrd is embedding now Modified: branches/iVL/.project ============================================================================== --- branches/iVL/.project (original) +++ branches/iVL/.project Mon Aug 25 21:28:18 2008 @@ -1,7 +1,7 @@ # Gambas Project File 2.0 Title=VectorLinux Installer Startup=MdlCore -Version=0.0.33 +Version=0.0.52 Library=gb.gtk Library=gb.form Library=gb.debug @@ -16,6 +16,7 @@ Language=en_US ControlPublic=1 ModulePublic=1 +ExecPath=/home/uel/svn-installer/installer.gambas Maintainer=M0E-lnx Vendor=VectorLinux Address=M0...@gm... Modified: branches/iVL/FMain.class ============================================================================== --- branches/iVL/FMain.class (original) +++ branches/iVL/FMain.class Mon Aug 25 21:28:18 2008 @@ -28,7 +28,7 @@ PUBLIC SUB Form_Open() DIM iImg AS Image -'ME.Maximized = TRUE +ME.Maximized = TRUE MdlCore.LOCK_GUI 'MdlCore.LOCK_GUI() Modified: branches/iVL/MdlConfLilo.module ============================================================================== --- branches/iVL/MdlConfLilo.module (original) +++ branches/iVL/MdlConfLilo.module Mon Aug 25 21:28:18 2008 @@ -103,7 +103,7 @@ SHELL "chmod 700 " & ClsGlobal.sTargetMnt &/ "var/log/setup/init" WAIT 'SHELL "touch " & ClsGlobal.sTargetMnt &/ "var/log/setup/init/config-stage2" sOut = "#!/bin/bash \n" & - "/sbin/config-stage1 vector-virgin-light" + "/sbin/config-stage1 vector-virgin-heavy" File.Save(ClsGlobal.sTargetMnt &/ "var/log/setup/init/config-stage2", sOut) 'SHELL "echo \"" & sOut & "\" >" & ClsGlobal.sTargetMnt &/ "var/log/setup/init/config-stage2" SHELL "chmod +x " & ClsGlobal.sTargetMnt &/ "var/log/setup/init/config-stage2" Modified: branches/iVL/MdlInstallCustom.module ============================================================================== --- branches/iVL/MdlInstallCustom.module (original) +++ branches/iVL/MdlInstallCustom.module Mon Aug 25 21:28:18 2008 @@ -88,7 +88,7 @@ FrmInstallSys.pbInstallProg2.Value = 1 'Message.Info("packages have been installed in your system. Please click next to configure it.") FrmInstallSys.tlBanner.Text = "Vectorlinux is now installed in your system. Please click next to configure it." - FrmInstallSys.tlCurrPkg.Text = "packages have been installed in your system. Please click next to configure it." + FrmInstallSys.tlCurrPkg.Text = "packages have been Installed. Please click next to move on to System Configuration." WITH FMain .btQuit.Enabled = TRUE .btQuit.ForeColor = Color.Black Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Mon Aug 25 21:28:18 2008 @@ -363,7 +363,7 @@ FrmInstallSys.pbInstallProg2.Value = 1 'Message.Info("Vectorlinux is now installed in your system. Please click next to configure it.") FrmInstallSys.tlBanner.Text = "Vectorlinux is now installed in your system. Please click next to configure it." - FrmInstallSys.tlCurrPkg.Text = "packages have been installed in your system. Please click next to configure it." + FrmInstallSys.tlCurrPkg.Text = "packages have been Installed. Please click next to move on to System Configuration." WITH FMain .btQuit.Enabled = TRUE .btQuit.ForeColor = Color.Black Modified: branches/iVL/MdlPartSel.module ============================================================================== --- branches/iVL/MdlPartSel.module (original) +++ branches/iVL/MdlPartSel.module Mon Aug 25 21:28:18 2008 @@ -171,12 +171,12 @@ .y = y .ReadOnly = TRUE .Width = tl.Width - .Add("Do not format") .Add("XFS") .Add("ReiserFS") .Add("Ext2") .Add("Ext3") .Add("JFS") + .Add("Do not format") '.Add("swap") IF InStr(Trim(FrmSelISO.lstInstallableImg.Text), .Tag) THEN .Enabled = FALSE Modified: branches/iVL/installer.gambas ============================================================================== Binary files. No diff available. |
From: <cod...@go...> - 2008-08-25 20:26:50
|
Author: M0E.lnx Date: Mon Aug 25 13:23:51 2008 New Revision: 143 Modified: branches/iVL/.lang/FMain.pot branches/iVL/.lang/FrmDiskPart.pot branches/iVL/.lang/FrmPartScheme.pot branches/iVL/.lang/FrmPartSel.pot branches/iVL/.lang/FrmSelISO.pot branches/iVL/.lang/MdlDiskPart.pot branches/iVL/.lang/MdlPartSel.pot branches/iVL/FMain.class branches/iVL/FrmDiskPart.class branches/iVL/FrmPartScheme.form branches/iVL/FrmPartSel.class branches/iVL/FrmPartSel.form branches/iVL/FrmSelISO.class branches/iVL/MdlDiskPart.module branches/iVL/MdlPartSel.module Log: - Added wait messages while forms load (specially for partition selection and gparted embedding) - Modified navigation. - Added help dialog for partition window - Added another attempt to embed GParted. Will try 3 different methods before giving up. Modified: branches/iVL/.lang/FMain.pot ============================================================================== --- branches/iVL/.lang/FMain.pot (original) +++ branches/iVL/.lang/FMain.pot Mon Aug 25 13:23:51 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/FMain.class +# /home/moe/area-51/projects/installer/FMain.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FMain.class:285 +#: FMain.class:308 msgid "Process Overview" msgstr "" -#: FMain.class:304 +#: FMain.class:327 msgid "Next" msgstr "" -#: FMain.class:310 +#: FMain.class:333 msgid "Back" msgstr "" -#: FMain.class:316 +#: FMain.class:339 msgid "Exit" msgstr "" Modified: branches/iVL/.lang/FrmDiskPart.pot ============================================================================== --- branches/iVL/.lang/FrmDiskPart.pot (original) +++ branches/iVL/.lang/FrmDiskPart.pot Mon Aug 25 13:23:51 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/FrmDiskPart.class +# /home/moe/area-51/projects/installer/FrmDiskPart.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. @@ -14,7 +14,7 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FrmDiskPart.class:102 +#: FrmDiskPart.class:115 msgid "Disk Partitioning:" msgstr "" Modified: branches/iVL/.lang/FrmPartScheme.pot ============================================================================== --- branches/iVL/.lang/FrmPartScheme.pot (original) +++ branches/iVL/.lang/FrmPartScheme.pot Mon Aug 25 13:23:51 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/FrmPartScheme.class +# /home/moe/area-51/projects/installer/FrmPartScheme.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPartSel.pot ============================================================================== --- branches/iVL/.lang/FrmPartSel.pot (original) +++ branches/iVL/.lang/FrmPartSel.pot Mon Aug 25 13:23:51 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/FrmPartSel.class +# /home/moe/area-51/projects/installer/FrmPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. @@ -14,15 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FrmPartSel.class:151 -msgid "Define where the operating system will be installed\n<br>\nLinux is a modular operating system. This means that it has the ability to keep system and user data separately.<br> A recommended setup would included a / (root), a /home, and a swap partitions.\n<br>\nPlease select which partitions you would like to use for your install" +#: FrmPartSel.class:172 +msgid "Please select the partitions you wish to use and how to use them" msgstr "" -#: FrmPartSel.class:160 +#: FrmPartSel.class:181 msgid "Check this box if you have a Windows installation on your system or any other windows partition (FAT, FAT32, NTFS) that you want auto-mounted as soon as your computer starts" msgstr "" -#: FrmPartSel.class:161 +#: FrmPartSel.class:182 msgid "Detect and Setup Windows partitions for auto-mounting at boot" +msgstr "" + +#: FrmPartSel.class:187 +msgid "Help" msgstr "" Modified: branches/iVL/.lang/FrmSelISO.pot ============================================================================== --- branches/iVL/.lang/FrmSelISO.pot (original) +++ branches/iVL/.lang/FrmSelISO.pot Mon Aug 25 13:23:51 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/FrmSelISO.class +# /home/moe/area-51/projects/installer/FrmSelISO.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FrmSelISO.class:228 +#: FrmSelISO.class:211 msgid "No installable images found." msgstr "" -#: FrmSelISO.class:234 +#: FrmSelISO.class:217 msgid "Select which distribution to install from the list below" msgstr "" -#: FrmSelISO.class:239 +#: FrmSelISO.class:222 msgid "TextLabel1" msgstr "" -#: FrmSelISO.class:244 +#: FrmSelISO.class:227 msgid "Search Again" msgstr "" Modified: branches/iVL/.lang/MdlDiskPart.pot ============================================================================== --- branches/iVL/.lang/MdlDiskPart.pot (original) +++ branches/iVL/.lang/MdlDiskPart.pot Mon Aug 25 13:23:51 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/MdlDiskPart.module +# /home/moe/area-51/projects/installer/MdlDiskPart.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPartSel.pot ============================================================================== --- branches/iVL/.lang/MdlPartSel.pot (original) +++ branches/iVL/.lang/MdlPartSel.pot Mon Aug 25 13:23:51 2008 @@ -1,4 +1,4 @@ -# /home/vluser/area-51/projects/installer/MdlPartSel.module +# /home/moe/area-51/projects/installer/MdlPartSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/FMain.class ============================================================================== --- branches/iVL/FMain.class (original) +++ branches/iVL/FMain.class Mon Aug 25 13:23:51 2008 @@ -169,6 +169,29 @@ ELSE MdlSetup.GO_WITH_SELECTED(sDev, "") END IF + frmNext = FrmPartScheme + + + CASE "FrmPartScheme" + ' The next form is defined from the radio buttons in Frm PartScheme. But let's see if we can display some status text + + 'FMain.MovieBox1.Refresh + WITH FrmPartScheme + IF .rbEditPartitions.Value = TRUE THEN + .tlChoiceExp.text = .tlChoiceExp.text & gb.NewLine & gb.NewLine & "<h3><br><br>Please wait while setup attampts to run the partitioning utility</h3>" + ELSE IF .rbUseExisting.Value = TRUE THEN + .tlChoiceExp.Text = .tlChoiceExp.Text & gb.NewLine & gb.NewLine & "<h3><br><br><hr>Please wait while setup analyses your current partition setup. <br>This may take a while ...</h3>" + + END IF + + + + END WITH + 'FMain.MovieBox1.Playing = TRUE + WAIT + + + CASE "FrmPartSel" IF NOT ClsPartSel.sRoot OR ClsPartSel.sRoot = "" THEN Message.Error("You must select a \"/\" partition. This is the target where the system will install to") @@ -228,6 +251,7 @@ END SELECT + frmNext.Reparent(ME.pnlWinHost) Modified: branches/iVL/FrmDiskPart.class ============================================================================== --- branches/iVL/FrmDiskPart.class (original) +++ branches/iVL/FrmDiskPart.class Mon Aug 25 13:23:51 2008 @@ -17,7 +17,7 @@ - +PRIVATE sRevText AS String PUBLIC SUB Form_Open() @@ -31,9 +31,10 @@ "This portion of the setup process allows you to define an installation target for your new operating system." & "Please use the partition program below to create, resize, or delete partitions, and make room for Vectorlinux." .tlBanner.Adjust + END WITH - + sRevText = ME.tlBanner.text END @@ -61,14 +62,26 @@ PUBLIC SUB EmbGPARTED_Close() DIM bReboot AS Boolean + + FrmDiskPart.tlBanner.Text = "<h3><br>Analyzing system partitioning scheme... Please wait<br>This will take a few seconds...</h3>" + FrmDiskPart.tlBanner.Refresh + FrmDiskPart.tlBanner.Adjust + 'Message("Exiting GParted") + WAIT 1 + bReboot = MdlSetup.CHECK_IF_REBOOT_NEEDED() IF bReboot = TRUE THEN ' need to reboot Message.Info("Your partition setup requires a system reboot. Your computer will now reboot") 'SHELL "sudo shutdown -r now" ELSE ' move to the next stage (select which partitions to use as what + FrmPartSel.Reparent(ME.Parent) + + + ME.Hide + FrmPartSel.Show Modified: branches/iVL/FrmPartScheme.form ============================================================================== --- branches/iVL/FrmPartScheme.form (original) +++ branches/iVL/FrmPartScheme.form Mon Aug 25 13:23:51 2008 @@ -1,22 +1,22 @@ # Gambas Form File 2.0 { Form Form - MoveScaled(0,0,81,50) + MoveScaled(0,0,81,65) Text = ("") { tlBanner TextLabel MoveScaled(1,1,51,4) Text = ("Select your disk partition option") } { rbUseExisting RadioButton - MoveScaled(1,6,32,3.25) + MoveScaled(1,6,32,3.1429) Text = ("Use existing disk partitions") } { rbEditPartitions RadioButton - MoveScaled(1,10,62,3.25) + MoveScaled(1,10,62,3.1429) Text = ("Modify my disk partitions to make room for new installation") } { tlChoiceExp TextLabel - MoveScaled(1,16,76,23) + MoveScaled(1,16,76,27) Text = ("TextLabel1") } } Modified: branches/iVL/FrmPartSel.class ============================================================================== --- branches/iVL/FrmPartSel.class (original) +++ branches/iVL/FrmPartSel.class Mon Aug 25 13:23:51 2008 @@ -35,10 +35,12 @@ PUBLIC SUB Form_Resize() DIM cb AS ComboBox DIM iWidth AS Integer = 0 + WITH ME - .tlBanner.Width = .ClientWidth - 16 - .scrollPartitions.Resize(.tlBanner.Width - 4, .ClientHeight - .tlBanner.Height - (cbDoWin.Height * 3)) + .tlBanner.Width = .ClientWidth - .btHelp.Width - 16 + .scrollPartitions.Resize(.tlBanner.Width + 4 + .btHelp.Width, .ClientHeight - .tlBanner.Height - (cbDoWin.Height * 3)) .cbDoWin.Move(.scrollPartitions.Left, .ClientHeight - .cbDoWin.Height - 8) + .btHelp.Move(.tlBanner.Left + .tlBanner.Width + 4, .tlBanner.top) '+ (.tlBanner.Height / 3)) ' .tlPartRow.Move(4, 4) ' .tlPartRow2.Move(.tlPartRow.Left + (.tlPartRow.Width * 1.5), .tlPartRow.top) ' .tlPartRow3.Move(.tlPartRow2.left + (.tlPartRow3.Width * 1.9), .tlPartRow.top) @@ -130,4 +132,22 @@ Form_Open +END + +PUBLIC SUB btHelp_Click() + + Message("<h3>ABOUT SYSTEM PARTITIONING IN LINUX</H3>" & + "Linux is a modular operating system. This means that is has the ability to store system and <br>" & + "user data separately for added data security. You may install the system to a single partition <br>" & + "by simply selecting a \"/\" value on this screen. The rest is optional. The following is a <br>" & + "suggested setup for a typical Linux installation<br><br>" & + "<b>/</b> - Used to store system data. This particular install requires a minimum of <i>" & ClsGlobal.iRootMin & "M</i> for this<br>" & + "but you should considear a higher value to make sure you have room to install additional software<br>" & + "in case you wish to.<br>" & + "<b>/home</b> - Used to store user documents, pictures, videos. Give yourself as much room as you want<br>" & + "Typically, you want to use the largest partition for this.<br>" & + "<b>swap</b> - Using a swap partition is suggested if your total RAM is less than 1GB. Suggested ammount<br>" & + "for this is <i>" & ClsGlobal.iSwapMin & "M </i> but can also be calculated as 2 times your ammount of RAM") + + END Modified: branches/iVL/FrmPartSel.form ============================================================================== --- branches/iVL/FrmPartSel.form (original) +++ branches/iVL/FrmPartSel.form Mon Aug 25 13:23:51 2008 @@ -4,15 +4,20 @@ MoveScaled(0,0,72,55) Text = ("") { tlBanner TextLabel - MoveScaled(1,1,70,14) - Text = ("Define where the operating system will be installed\n<br>\nLinux is a modular operating system. This means that it has the ability to keep system and user data separately.<br> A recommended setup would included a / (root), a /home, and a swap partitions.\n<br>\nPlease select which partitions you would like to use for your install") + MoveScaled(1,1,61,3.8571) + Text = ("Please select the partitions you wish to use and how to use them") } { scrollPartitions ScrollView - MoveScaled(1,16,69,33) + MoveScaled(1,6,69,41) } { cbDoWin CheckBox - MoveScaled(1,50,57,3.3333) + MoveScaled(1,50,57,3.2857) ToolTip = ("Check this box if you have a Windows installation on your system or any other windows partition (FAT, FAT32, NTFS) that you want auto-mounted as soon as your computer starts") Text = ("Detect and Setup Windows partitions for auto-mounting at boot") + } + { btHelp Button + MoveScaled(63,1,8,3) + Text = ("Help") + Picture = Picture["icon:/small/help"] } } Modified: branches/iVL/FrmSelISO.class ============================================================================== --- branches/iVL/FrmSelISO.class (original) +++ branches/iVL/FrmSelISO.class Mon Aug 25 13:23:51 2008 @@ -53,30 +53,13 @@ FMain.btnext.Height = FMain.btback.Height FMain.sNextKey = "Prep0" FMain.FrmCurr = ME - FMain.frmNext = FrmPartScheme + 'FMain.frmNext = FrmPartScheme ' FMain.tvPlan["Prep0"].Selected = TRUE ' FMain.tvPlan["Prep0"].Picture = MdlCore.sNowPic IF ClsGlobal.sBackNav.Find(ME) = -1 THEN ClsGlobal.sBackNav.Add(ME) END IF - - ' shape the main form according to the findings - 'warn the user if no installable media was found - ' ' IF FrmSelISO.lstInstallableImg.Count = 0 THEN - ' ' FrmSelISO.lstInstallableImg.Add("No Installable Media Found") - ' ' FrmSelISO.tlDistroDesc.Text = "Setup was unable to find any installable media on your system. Please insert your VectorLinux " & - ' ' "installation CD and click \'" & FrmSelISO.btResCan.Text & "\' to try again" - ' ' FMain.btnext.Enabled = FALSE - ' ' FMain.btnext.ForeColor = Color.Gray - ' ' ELSE - ' ' FMain.btnext.Enabled = TRUE - ' ' FMain.btnext.ForeColor = Color.Black - ' ' END IF - - - - END Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Mon Aug 25 13:23:51 2008 @@ -28,6 +28,7 @@ DIM sWins AS String = "gpartedbin,Gpartedbin" '" GParted, / dev / sda - GParted, / dev / hda - GParted "" DIM sWons AS String[] = Split(sWins, ",") DIM sType AS String + DIM sTypes AS String[] 'DIM sTypeArr AS String[] 'Desktop.Find("", "GParted") @@ -37,7 +38,7 @@ ' For now, try to determine what type of drive thsi is.. ' The following line will get the first listed drive (/dev/sda or /dev/hda) and use that ' as a starting point to search for a running instance of gparted - SHELL "probedisk | grep -v \'cdrom\' | cut -f 1 -d \'|\' | grep \'a\'" TO sType + SHELL "probedisk | grep -v \'cdrom\' | cut -f 1 -d \'|\'" TO sType stype = Trim(sType) 'Message(sType) IF stype = "" THEN @@ -57,46 +58,32 @@ SHELL "/usr/sbin/gparted" WAIT 1 + sTypes = Split(sType, "\n") + aHandle = Desktop.Find("", "*parted*", "") i = 0 IF aHandle.Count = 0 THEN 'lets give it a chance to start REPEAT - WAIT 2 - aHandle = Desktop.Find("", "*partedbi*", "") + WAIT 1 + aHandle = Desktop.Find("", "*parted*", "") INC i UNTIL aHandle.Count > 0 OR i > 5 END IF - 'Message(aHandle.count) - 'RETURN - ' ' ' - ' ' ' - ' ' ' aHandle = Desktop.Find("GParted") - ' ' ' IF aHandle.count = 0 THEN - ' ' ' WAIT 1 - ' ' ' aHandle = Desktop.Find("GParted") - ' ' ' IF aHandle.Count = 0 THEN - ' ' ' ' this is too much... let's try to find it using the drive name - ' ' ' aHandle = Desktop.Find(sType & " - GParted") - ' ' ' END IF - ' ' ' END IF - ' ' ' - ' ' ' - ' ' ' 'aHandle = Desktop.Find("*" & " - GParted", "gpartedbin") - ' ' ' aHandle = Desktop.Find(sType & " - GParted") - ' ' ' - - ' i = 0 - ' aHandle = Desktop.Find("", Trim(sWons[i])) - ' WAIT - ' IF aHandle.Count = 0 THEN - ' REPEAT - ' WAIT 2 - ' INC i - ' aHandle = Desktop.Find("", sWons[i]) - ' UNTIL - ' aHandle.Count > 0 OR i = sWons.count - 1 - ' END IF + + IF aHandle.count = 0 ' still struggling here + 'FOR i = 0 TO sTypes.Count - 1 + i = 0 + REPEAT + aHandle = Desktop.Find(Trim(sTypes[i]) & " - GParted") + INC i + UNTIL aHandle.coun > 0 OR i = sTypes.Count - 1 + END IF + + IF aHandle.count = 0 THEN + aHandle = Desktop.Find("GParted") ' one last attempt + END IF + IF aHandle.Count = 0 THEN Message("Setup is unable to successfully run gparted on this system. This may be a sign of \n" & Modified: branches/iVL/MdlPartSel.module ============================================================================== --- branches/iVL/MdlPartSel.module (original) +++ branches/iVL/MdlPartSel.module Mon Aug 25 13:23:51 2008 @@ -41,6 +41,9 @@ DIM sSwaps AS String[] DIM ii AS Integer DIM sDrive, sPartNo, sBlank AS String + + + ' fire up the arrays oFsTypes = NEW Object[] oMountPoints = NEW Object[] @@ -244,7 +247,7 @@ y = y + cb.height + 4 ME.oSwaps.Add(cb) - y = y + cb.Height + 4 + 'y = y + cb.Height + 4 NEXT END IF |
From: <cod...@go...> - 2008-08-25 16:29:25
|
Author: M0E.lnx Date: Mon Aug 25 09:28:45 2008 New Revision: 142 Modified: branches/iVL/.lang/ClsGlobal.pot branches/iVL/.lang/ClsPartSel.pot branches/iVL/.lang/ClsWinDrives.pot branches/iVL/.lang/FMain.pot branches/iVL/.lang/FrmDiskPart.pot branches/iVL/.lang/FrmLicense.pot branches/iVL/.lang/FrmPartScheme.pot branches/iVL/.lang/FrmPartSel.pot branches/iVL/.lang/FrmPkgSel.pot branches/iVL/.lang/FrmSelISO.pot branches/iVL/.lang/FrmSummary.pot branches/iVL/.lang/FrmWinDrives.pot branches/iVL/.lang/MdlCore.pot branches/iVL/.lang/MdlDiskPart.pot branches/iVL/.lang/MdlObjSizer.pot branches/iVL/.lang/MdlPartSel.pot branches/iVL/.lang/MdlPkgSel.pot branches/iVL/.lang/MdlSetup.pot branches/iVL/.lang/MdlSummarize.pot branches/iVL/.lang/MdlWinDrives.pot branches/iVL/FMain.class branches/iVL/MdlInstallSys.module branches/iVL/MdlPartSel.module Log: - Added code to pick up any other linux partitions mounting to /mnt/xxx on fstab - Added option to ignore a swap partition Modified: branches/iVL/.lang/ClsGlobal.pot ============================================================================== --- branches/iVL/.lang/ClsGlobal.pot (original) +++ branches/iVL/.lang/ClsGlobal.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/ClsGlobal.class +# /home/vluser/area-51/projects/installer/ClsGlobal.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsPartSel.pot ============================================================================== --- branches/iVL/.lang/ClsPartSel.pot (original) +++ branches/iVL/.lang/ClsPartSel.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/ClsPartSel.class +# /home/vluser/area-51/projects/installer/ClsPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsWinDrives.pot ============================================================================== --- branches/iVL/.lang/ClsWinDrives.pot (original) +++ branches/iVL/.lang/ClsWinDrives.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/ClsWinDrives.class +# /home/vluser/area-51/projects/installer/ClsWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FMain.pot ============================================================================== --- branches/iVL/.lang/FMain.pot (original) +++ branches/iVL/.lang/FMain.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/FMain.class +# /home/vluser/area-51/projects/installer/FMain.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FMain.class:284 +#: FMain.class:285 msgid "Process Overview" msgstr "" -#: FMain.class:303 +#: FMain.class:304 msgid "Next" msgstr "" -#: FMain.class:309 +#: FMain.class:310 msgid "Back" msgstr "" -#: FMain.class:315 +#: FMain.class:316 msgid "Exit" msgstr "" Modified: branches/iVL/.lang/FrmDiskPart.pot ============================================================================== --- branches/iVL/.lang/FrmDiskPart.pot (original) +++ branches/iVL/.lang/FrmDiskPart.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/FrmDiskPart.class +# /home/vluser/area-51/projects/installer/FrmDiskPart.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmLicense.pot ============================================================================== --- branches/iVL/.lang/FrmLicense.pot (original) +++ branches/iVL/.lang/FrmLicense.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/FrmLicense.class +# /home/vluser/area-51/projects/installer/FrmLicense.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPartScheme.pot ============================================================================== --- branches/iVL/.lang/FrmPartScheme.pot (original) +++ branches/iVL/.lang/FrmPartScheme.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/FrmPartScheme.class +# /home/vluser/area-51/projects/installer/FrmPartScheme.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPartSel.pot ============================================================================== --- branches/iVL/.lang/FrmPartSel.pot (original) +++ branches/iVL/.lang/FrmPartSel.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/FrmPartSel.class +# /home/vluser/area-51/projects/installer/FrmPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPkgSel.pot ============================================================================== --- branches/iVL/.lang/FrmPkgSel.pot (original) +++ branches/iVL/.lang/FrmPkgSel.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/FrmPkgSel.class +# /home/vluser/area-51/projects/installer/FrmPkgSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmSelISO.pot ============================================================================== --- branches/iVL/.lang/FrmSelISO.pot (original) +++ branches/iVL/.lang/FrmSelISO.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/FrmSelISO.class +# /home/vluser/area-51/projects/installer/FrmSelISO.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmSummary.pot ============================================================================== --- branches/iVL/.lang/FrmSummary.pot (original) +++ branches/iVL/.lang/FrmSummary.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/FrmSummary.class +# /home/vluser/area-51/projects/installer/FrmSummary.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmWinDrives.pot ============================================================================== --- branches/iVL/.lang/FrmWinDrives.pot (original) +++ branches/iVL/.lang/FrmWinDrives.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/FrmWinDrives.class +# /home/vluser/area-51/projects/installer/FrmWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlCore.pot ============================================================================== --- branches/iVL/.lang/MdlCore.pot (original) +++ branches/iVL/.lang/MdlCore.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/MdlCore.module +# /home/vluser/area-51/projects/installer/MdlCore.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlDiskPart.pot ============================================================================== --- branches/iVL/.lang/MdlDiskPart.pot (original) +++ branches/iVL/.lang/MdlDiskPart.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlDiskPart.module +# /home/vluser/area-51/projects/installer/MdlDiskPart.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlObjSizer.pot ============================================================================== --- branches/iVL/.lang/MdlObjSizer.pot (original) +++ branches/iVL/.lang/MdlObjSizer.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/MdlObjSizer.module +# /home/vluser/area-51/projects/installer/MdlObjSizer.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPartSel.pot ============================================================================== --- branches/iVL/.lang/MdlPartSel.pot (original) +++ branches/iVL/.lang/MdlPartSel.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlPartSel.module +# /home/vluser/area-51/projects/installer/MdlPartSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPkgSel.pot ============================================================================== --- branches/iVL/.lang/MdlPkgSel.pot (original) +++ branches/iVL/.lang/MdlPkgSel.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/MdlPkgSel.module +# /home/vluser/area-51/projects/installer/MdlPkgSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSetup.pot ============================================================================== --- branches/iVL/.lang/MdlSetup.pot (original) +++ branches/iVL/.lang/MdlSetup.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/MdlSetup.module +# /home/vluser/area-51/projects/installer/MdlSetup.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSummarize.pot ============================================================================== --- branches/iVL/.lang/MdlSummarize.pot (original) +++ branches/iVL/.lang/MdlSummarize.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/MdlSummarize.module +# /home/vluser/area-51/projects/installer/MdlSummarize.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlWinDrives.pot ============================================================================== --- branches/iVL/.lang/MdlWinDrives.pot (original) +++ branches/iVL/.lang/MdlWinDrives.pot Mon Aug 25 09:28:45 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/MdlWinDrives.module +# /home/vluser/area-51/projects/installer/MdlWinDrives.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/FMain.class ============================================================================== --- branches/iVL/FMain.class (original) +++ branches/iVL/FMain.class Mon Aug 25 09:28:45 2008 @@ -227,7 +227,7 @@ END SELECT - + frmNext.Reparent(ME.pnlWinHost) Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Mon Aug 25 09:28:45 2008 @@ -90,6 +90,7 @@ DIM sFstab AS String DIM sPartFmt AS String DIM cb AS ComboBox + DIM sRes, sDrive, sBlank, sPartNo AS String 'FOR testing purposes @@ -180,6 +181,26 @@ sLinMntPnt = ClsPartSel.sLinuxPart[i] NEXT ENDIF + +' nOW LETS' GET THE REST OF THE PARTITIONS IN THERE +FOR EACH CB IN MdlPartSel.oMountPoints + + IF InStr(cb.text, "/mnt/") = TRUE THEN + sDrive = Left(cb.tag, Len("/dev/hda")) + sPartNo = Right(cb.tag, Len(cb.tag) - Len(sDrive)) + IF Len(sPartNo) > 1 THEN + sBlank = "" + ELSE + sBlank = " " + END IF + + SHELL "export sfmt=$(parted " & sDrive & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $sfmt | cut -f 6 -d \' \'" TO sRes + + sFstab = sFstab & gb.NewLine & cb.tag & Space(1) & cb.Text & Space(1) & sRes & Space(1) & ME.fS_oPTIONS(sRes) & Space(1) & " 0 2 " + TRY MKDIR ClsGlobal.sTargetMnt &/ cb.Text + END IF +NEXT + sFstab = sFstab & "\n\n" & "# Shared Windows/Linux partition" & "#/dev/hda1 /mnt/dos msdos umask=0 0 0 \n" & @@ -224,8 +245,10 @@ "# The 'sw' option means auto activating with 'swapon -a'.\n" ' This will add all the swap partitions to fstab FOR EACH cb IN MdlPartSel.oSwaps + IF cb.text <> "Not Used" THEN sFstab = sFstab & "\n" & cb.Tag & Space(1) & "none" & Space(1) & "swap" & Space(1) & "sw" & Space(1) & "0" & Space(1) & "0" & gb.NewLine + END IF NEXT Modified: branches/iVL/MdlPartSel.module ============================================================================== --- branches/iVL/MdlPartSel.module (original) +++ branches/iVL/MdlPartSel.module Mon Aug 25 09:28:45 2008 @@ -238,6 +238,7 @@ .width = tl.Width .ReadOnly = TRUE .Add("Swap") + .Add("Not Used") .tag = sPart END WITH y = y + cb.height + 4 |
From: <cod...@go...> - 2008-08-25 14:23:31
|
Author: M0E.lnx Date: Mon Aug 25 07:23:16 2008 New Revision: 141 Modified: branches/iVL/.lang/ClsPartSel.pot branches/iVL/.lang/MdlDiskPart.pot branches/iVL/.lang/MdlPartSel.pot branches/iVL/MdlConfLilo.module branches/iVL/MdlDiskPart.module branches/iVL/MdlPartSel.module Log: - Modified the partition listing / size detection to fix a problem where some partitions were not listing their size - Changes to the gparted embedder again (this time using a more liberal WM_CLASS string - Fixed typo in MdlLiloconfig line 123 Modified: branches/iVL/.lang/ClsPartSel.pot ============================================================================== --- branches/iVL/.lang/ClsPartSel.pot (original) +++ branches/iVL/.lang/ClsPartSel.pot Mon Aug 25 07:23:16 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/ClsPartSel.class +# /home/moe/area-51/projects/installer/ClsPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlDiskPart.pot ============================================================================== --- branches/iVL/.lang/MdlDiskPart.pot (original) +++ branches/iVL/.lang/MdlDiskPart.pot Mon Aug 25 07:23:16 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/MdlDiskPart.module +# /home/moe/area-51/projects/installer/MdlDiskPart.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPartSel.pot ============================================================================== --- branches/iVL/.lang/MdlPartSel.pot (original) +++ branches/iVL/.lang/MdlPartSel.pot Mon Aug 25 07:23:16 2008 @@ -1,4 +1,4 @@ -# /home/uel/svn-installer/MdlPartSel.module +# /home/moe/area-51/projects/installer/MdlPartSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/MdlConfLilo.module ============================================================================== --- branches/iVL/MdlConfLilo.module (original) +++ branches/iVL/MdlConfLilo.module Mon Aug 25 07:23:16 2008 @@ -120,7 +120,7 @@ DIM sTarget AS String DIM sDump AS String - SHELL "probedisk | grep -v cdrom |cut -f 1 -d \\|" TO sList + SHELL "probedisk | grep -v cdrom |cut -f 1 -d \'|\'" TO sList sList = Trim(sList) sListarr = Split(sList, "\n") FOR i = 0 TO sListarr.count - 1 Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Mon Aug 25 07:23:16 2008 @@ -57,7 +57,7 @@ SHELL "/usr/sbin/gparted" WAIT 1 - aHandle = Desktop.Find("", "*partedbi*", "") + aHandle = Desktop.Find("", "*parted*", "") i = 0 IF aHandle.Count = 0 THEN 'lets give it a chance to start REPEAT Modified: branches/iVL/MdlPartSel.module ============================================================================== --- branches/iVL/MdlPartSel.module (original) +++ branches/iVL/MdlPartSel.module Mon Aug 25 07:23:16 2008 @@ -40,6 +40,7 @@ DIM iCol1, icol2, iCol3 AS Integer DIM sSwaps AS String[] DIM ii AS Integer + DIM sDrive, sPartNo, sBlank AS String ' fire up the arrays oFsTypes = NEW Object[] oMountPoints = NEW Object[] @@ -90,19 +91,29 @@ FOR i = 0 TO sPartList.Count - 1 + sDrive = Left(sPartList[i], Len("/dev/hda")) + sPartNo = Right(sPartList[i], Len(sPartList[i]) - Len(sDrive)) + IF Len(sPartNo) > 1 THEN + sBlank = "" + ELSE + sBlank = " " + END IF + + sPart = Right(sPartList[i], Len(sPartList[i]) - RInStr(sPartList[i], "/")) 'Message.Info(sPart) - 'make sure the mount point exists - IF IsDir("/mnt" &/ sPart) = FALSE THEN - SHELL "mkdir /mnt" &/ sPart WAIT - END IF - ' Now mount the partition - SHELL "mount " & Trim(sPartList[i]) & Space(1) & "/mnt" &/ sPart WAIT - ' get the size using df -h | grep sPart and some sed - ' will embed some bash, but should probabbly be fixed - SHELL "export " & sPart & "=$(df -h | grep " & sPart & ") && echo $" & sPart & " | cut -f 2 -d \' \'" TO sSize - 'Message(sPart & Space(1) & "[ " & Trim(sSize) & " ]") + ' ' ' 'make sure the mount point exists + ' ' ' IF IsDir("/mnt" &/ sPart) = FALSE THEN + ' ' ' SHELL "mkdir /mnt" &/ sPart WAIT + ' ' ' END IF + ' ' ' ' Now mount the partition + ' ' ' SHELL "mount " & Trim(sPartList[i]) & Space(1) & "/mnt" &/ sPart WAIT + ' ' ' ' get the size using df -h | grep sPart and some sed + ' ' ' ' will embed some bash, but should probabbly be fixed + ' ' ' SHELL "export " & sPart & "=$(df -h | grep " & sPart & ") && echo $" & sPart & " | cut -f 2 -d \' \'" TO sSize + ' ' ' 'Message(sPart & Space(1) & "[ " & Trim(sSize) & " ]") + SHELL "export size=$(parted " & sDrive & " print | grep ^\'" & sBlank & sPartNo & "\'); echo $size | cut -f 4 -d \' \'" TO sSize 'create the label and the drop down box here tl = NEW TextLabel(FrmPartSel.scrollPartitions) AS "Labels" WITH tl @@ -181,7 +192,7 @@ ' now umount the partition and delete the mount point - SHELL "umount /mnt" &/ sPart & " && rm -r /mnt" &/ sPart WAIT + 'SHELL "umount /mnt" &/ sPart & " && rm -r /mnt" &/ sPart WAIT ' increase the value of y for the next label y = y + tl.Height + 4 |
From: <cod...@go...> - 2008-08-24 18:38:06
|
Author: uelsk8s Date: Sun Aug 24 11:37:42 2008 New Revision: 140 Modified: branches/iVL/.lang/ClsGlobal.pot branches/iVL/.lang/ClsPartSel.pot branches/iVL/.lang/ClsWinDrives.pot branches/iVL/.lang/FMain.pot branches/iVL/.lang/FrmDiskPart.pot branches/iVL/.lang/FrmLicense.pot branches/iVL/.lang/FrmPartScheme.pot branches/iVL/.lang/FrmPartSel.pot branches/iVL/.lang/FrmPkgSel.pot branches/iVL/.lang/FrmSelISO.pot branches/iVL/.lang/FrmSummary.pot branches/iVL/.lang/FrmWinDrives.pot branches/iVL/.lang/MdlCore.pot branches/iVL/.lang/MdlDiskPart.pot branches/iVL/.lang/MdlObjSizer.pot branches/iVL/.lang/MdlPartSel.pot branches/iVL/.lang/MdlPkgSel.pot branches/iVL/.lang/MdlSetup.pot branches/iVL/.lang/MdlSummarize.pot branches/iVL/.lang/MdlWinDrives.pot branches/iVL/FrmLilo.class branches/iVL/MdlInstallCustom.module Log: Ready to test in initrd working for me now Modified: branches/iVL/.lang/ClsGlobal.pot ============================================================================== --- branches/iVL/.lang/ClsGlobal.pot (original) +++ branches/iVL/.lang/ClsGlobal.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/ClsGlobal.class +# /home/uel/svn-installer/ClsGlobal.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsPartSel.pot ============================================================================== --- branches/iVL/.lang/ClsPartSel.pot (original) +++ branches/iVL/.lang/ClsPartSel.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/ClsPartSel.class +# /home/uel/svn-installer/ClsPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsWinDrives.pot ============================================================================== --- branches/iVL/.lang/ClsWinDrives.pot (original) +++ branches/iVL/.lang/ClsWinDrives.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/ClsWinDrives.class +# /home/uel/svn-installer/ClsWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FMain.pot ============================================================================== --- branches/iVL/.lang/FMain.pot (original) +++ branches/iVL/.lang/FMain.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FMain.class +# /home/uel/svn-installer/FMain.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmDiskPart.pot ============================================================================== --- branches/iVL/.lang/FrmDiskPart.pot (original) +++ branches/iVL/.lang/FrmDiskPart.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmDiskPart.class +# /home/uel/svn-installer/FrmDiskPart.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmLicense.pot ============================================================================== --- branches/iVL/.lang/FrmLicense.pot (original) +++ branches/iVL/.lang/FrmLicense.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmLicense.class +# /home/uel/svn-installer/FrmLicense.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPartScheme.pot ============================================================================== --- branches/iVL/.lang/FrmPartScheme.pot (original) +++ branches/iVL/.lang/FrmPartScheme.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmPartScheme.class +# /home/uel/svn-installer/FrmPartScheme.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPartSel.pot ============================================================================== --- branches/iVL/.lang/FrmPartSel.pot (original) +++ branches/iVL/.lang/FrmPartSel.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmPartSel.class +# /home/uel/svn-installer/FrmPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPkgSel.pot ============================================================================== --- branches/iVL/.lang/FrmPkgSel.pot (original) +++ branches/iVL/.lang/FrmPkgSel.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmPkgSel.class +# /home/uel/svn-installer/FrmPkgSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmSelISO.pot ============================================================================== --- branches/iVL/.lang/FrmSelISO.pot (original) +++ branches/iVL/.lang/FrmSelISO.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmSelISO.class +# /home/uel/svn-installer/FrmSelISO.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmSummary.pot ============================================================================== --- branches/iVL/.lang/FrmSummary.pot (original) +++ branches/iVL/.lang/FrmSummary.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmSummary.class +# /home/uel/svn-installer/FrmSummary.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmWinDrives.pot ============================================================================== --- branches/iVL/.lang/FrmWinDrives.pot (original) +++ branches/iVL/.lang/FrmWinDrives.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/FrmWinDrives.class +# /home/uel/svn-installer/FrmWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlCore.pot ============================================================================== --- branches/iVL/.lang/MdlCore.pot (original) +++ branches/iVL/.lang/MdlCore.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlCore.module +# /home/uel/svn-installer/MdlCore.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlDiskPart.pot ============================================================================== --- branches/iVL/.lang/MdlDiskPart.pot (original) +++ branches/iVL/.lang/MdlDiskPart.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlDiskPart.module +# /home/uel/svn-installer/MdlDiskPart.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlObjSizer.pot ============================================================================== --- branches/iVL/.lang/MdlObjSizer.pot (original) +++ branches/iVL/.lang/MdlObjSizer.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlObjSizer.module +# /home/uel/svn-installer/MdlObjSizer.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPartSel.pot ============================================================================== --- branches/iVL/.lang/MdlPartSel.pot (original) +++ branches/iVL/.lang/MdlPartSel.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlPartSel.module +# /home/uel/svn-installer/MdlPartSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPkgSel.pot ============================================================================== --- branches/iVL/.lang/MdlPkgSel.pot (original) +++ branches/iVL/.lang/MdlPkgSel.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlPkgSel.module +# /home/uel/svn-installer/MdlPkgSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSetup.pot ============================================================================== --- branches/iVL/.lang/MdlSetup.pot (original) +++ branches/iVL/.lang/MdlSetup.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlSetup.module +# /home/uel/svn-installer/MdlSetup.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSummarize.pot ============================================================================== --- branches/iVL/.lang/MdlSummarize.pot (original) +++ branches/iVL/.lang/MdlSummarize.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlSummarize.module +# /home/uel/svn-installer/MdlSummarize.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlWinDrives.pot ============================================================================== --- branches/iVL/.lang/MdlWinDrives.pot (original) +++ branches/iVL/.lang/MdlWinDrives.pot Sun Aug 24 11:37:42 2008 @@ -1,4 +1,4 @@ -# /home/moe/area-51/projects/installer/MdlWinDrives.module +# /home/uel/svn-installer/MdlWinDrives.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/FrmLilo.class ============================================================================== --- branches/iVL/FrmLilo.class (original) +++ branches/iVL/FrmLilo.class Sun Aug 24 11:37:42 2008 @@ -44,7 +44,7 @@ FBResolution_Click() MdlLiloOsList.list_boot_options() ME.TabStrip1.Index = 0 -ME.TabStrip1.Linux.Click() +'ME.TabStrip1.Linux.Click() 'set the focus to the Linux tab HOW? ME.cbDefBoot.Text = "Linux" END Modified: branches/iVL/MdlInstallCustom.module ============================================================================== --- branches/iVL/MdlInstallCustom.module (original) +++ branches/iVL/MdlInstallCustom.module Sun Aug 24 11:37:42 2008 @@ -58,7 +58,8 @@ RETURN END IF - iret = ME.INSTALL_PACKAGES_REQUIRED() + 'iret = ME.INSTALL_PACKAGES_REQUIRED() + iret = MdlInstallSys.INSTALL_REQUIRED_PACKAGES() PRINT "INSTALLING ADDITIONAL REQUIRED SOFTWARE" IF iret <> 0 THEN Message.Error("Error while installing required system software. " & gb.NewLine & sErr) |
From: <cod...@go...> - 2008-08-24 18:00:00
|
Author: uelsk8s Date: Sun Aug 24 10:59:38 2008 New Revision: 139 Modified: branches/iVL/ClsPartSel.class branches/iVL/FrmInstallSys.class branches/iVL/FrmLilo.class branches/iVL/MdlConfLilo.module branches/iVL/MdlDiskPart.module branches/iVL/MdlInstallCustom.module branches/iVL/MdlInstallSys.module branches/iVL/MdlLiloOsList.module branches/iVL/MdlPartSel.module branches/iVL/installer.gambas Log: small changes to make lilo work. Modified: branches/iVL/ClsPartSel.class ============================================================================== --- branches/iVL/ClsPartSel.class (original) +++ branches/iVL/ClsPartSel.class Sun Aug 24 10:59:38 2008 @@ -29,6 +29,8 @@ STATIC PUBLIC fVar AS String STATIC PUBLIC sTmp AS String STATIC PUBLIC fTmp AS String +STATIC PUBLIC sLinuxPart AS String[] +STATIC PUBLIC fLinuxPart AS String[] STATIC PUBLIC sSwap AS String Modified: branches/iVL/FrmInstallSys.class ============================================================================== --- branches/iVL/FrmInstallSys.class (original) +++ branches/iVL/FrmInstallSys.class Sun Aug 24 10:59:38 2008 @@ -21,6 +21,7 @@ DIM sRes AS Integer ' we will need to + MdlCore.lock_gui() FMain.FrmCurr = ME FMain.tvPlan["Inst1"].Picture = MdlCore.sDonePic FMain.tvPlan["Inst2"].Picture = MdlCore.sNowPic Modified: branches/iVL/FrmLilo.class ============================================================================== --- branches/iVL/FrmLilo.class (original) +++ branches/iVL/FrmLilo.class Sun Aug 24 10:59:38 2008 @@ -37,11 +37,15 @@ MdlLiloOsList.bVlCliOption = FALSE -ME.TabStrip1.Index = 0 + 'ME.Maximized = TRUE FBResolution_Click() -FBResolution.text = "Standard" +FBResolution.text = "Bootsplash High" +FBResolution_Click() MdlLiloOsList.list_boot_options() +ME.TabStrip1.Index = 0 +ME.TabStrip1.Linux.Click() +ME.cbDefBoot.Text = "Linux" END Modified: branches/iVL/MdlConfLilo.module ============================================================================== --- branches/iVL/MdlConfLilo.module (original) +++ branches/iVL/MdlConfLilo.module Sun Aug 24 10:59:38 2008 @@ -54,8 +54,8 @@ "# Override dangerous defaults that rewrite the partition table: \n" & "change-rules \n" & "reset \n" - 'IF Exist(ClsGlobal.sTargetMnt &/ "boot" &/ "bitmap" &/ "boot.bmp") THEN - IF Exist("/boot/bitmap/boot.bmp") THEN + IF Exist(ClsGlobal.sTargetMnt &/ "boot" &/ "bitmap" &/ "boot.bmp") THEN + 'IF Exist("/boot/bitmap/boot.bmp") THEN sOut = sOut & "\n" & "bitmap = /boot/bitmap/boot.bmp \n" END IF @@ -86,24 +86,32 @@ PUBLIC SUB EXECUTE_LILO() + DIM sOut AS String DIM sDump AS String SHELL "mount -o bind /dev " & ClsGlobal.sTargetMnt &/ "dev" WAIT SHELL "mount -o bind /proc " & ClsGlobal.sTargetMnt &/ "proc" WAIT - SHELL "chroot " & ClsGlobal.sTargetMnt & "; /sbin/lilo || echo \'FAILED\'" TO sDump + SHELL "chroot " & ClsGlobal.sTargetMnt & " /sbin/lilo || echo \'FAILED\'" TO sDump IF InStr(sDump, "FAILED") > 0 THEN Message.Error("Lilo returned an error. Please see below" & gb.NewLine & sDump) ELSE Message("Boot loader has been setup successfully") END IF - - + SHELL "umount " & ClsGlobal.sTargetMnt &/ "dev" WAIT + SHELL "umount " & ClsGlobal.sTargetMnt &/ "proc" WAIT + SHELL "mkdir -p " & ClsGlobal.sTargetMnt &/ "var/log/setup/init" WAIT + SHELL "chmod 700 " & ClsGlobal.sTargetMnt &/ "var/log/setup/init" WAIT + 'SHELL "touch " & ClsGlobal.sTargetMnt &/ "var/log/setup/init/config-stage2" + sOut = "#!/bin/bash \n" & + "/sbin/config-stage1 vector-virgin-light" + File.Save(ClsGlobal.sTargetMnt &/ "var/log/setup/init/config-stage2", sOut) + 'SHELL "echo \"" & sOut & "\" >" & ClsGlobal.sTargetMnt &/ "var/log/setup/init/config-stage2" + SHELL "chmod +x " & ClsGlobal.sTargetMnt &/ "var/log/setup/init/config-stage2" + Message("Vectorlinux has been installed click OK to reboot") + SHELL "reboot" END - - - PUBLIC SUB DISPLAY_LILO_TARGET_OPTIONS() DIM sList AS String @@ -143,13 +151,14 @@ DIM sDump AS String sInitrd0 = "initrd" sInitrd1 = "initrd.gz" - ClsPartSel.sRoot = "/dev/hda1" ' just for testing + 'ClsPartSel.sRoot = "/dev/hda1" ' just for testing FOR EACH cb IN MdlLiloOsList.bIncluded IF cb.Value = TRUE THEN sShortAddr = Right(cb.tag, Len(cb.tag) - RInStr(cb.tag, "/")) IF cb.tag <> ClsPartSel.sRoot THEN + SHELL "mkdir -p " & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" WAIT FOR EACH tb IN MdlLiloOsList.txtInitrds - 'IF cb.tag <> ClsPartSel.sRoot THEN + IF cb.tag <> ClsPartSel.sRoot THEN IF tb.tag = cb.tag THEN 'mount it and find the initrd SHELL "mkdir /mnt" &/ sShortAddr WAIT @@ -158,9 +167,8 @@ 'message(sDump) IF Exist("/mnt/" & sShortAddr &/ "boot" &/ sInitrd0) THEN - - PRINT "cp /mnt" &/ sShortAddr &/ "boot" &/ sInitrd0 & " to " & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text - SHELL "cp /mnt" &/ sShortAddr &/ sInitrd0 & Space(1) & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text + PRINT "cp /mnt" &/ sShortAddr &/ "boot" &/ sInitrd0 & " to " & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text + SHELL "cp /mnt" &/ sShortAddr &/ "boot" &/ sInitrd0 & Space(1) & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text ELSE IF Exist("/mnt" &/ sShortAddr &/ "boot" &/ sInitrd1) THEN PRINT "cp /mnt" &/ sShortAddr &/ "boot" &/ sInitrd1 & " to " & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text SHELL "cp /mnt" &/ sShortAddr &/ sInitrd1 & Space(1) & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text @@ -175,22 +183,15 @@ SHELL "umount /mnt" &/ sShortAddr WAIT END IF + ENDIF NEXT END IF END IF NEXT - - END - - - - - - PUBLIC SUB GENERATE_LILO_DOT_CONF() DIM sFile AS String @@ -236,13 +237,21 @@ END IF NEXT ' now put it in a section - - sSection = "image = " & sBootAddr &/ "vmlinuz-" & sShortAddr & gb.NewLine & + IF bInc.tag = ClsPartSel.sRoot THEN + sSection = "image = " & sBootAddr &/ "vmlinuz" & gb.NewLine & + "root = " & bInc.tag & gb.NewLine & + "label = " & sEntryLbl & gb.NewLine & + "append = \"" & sEntryApnd & "\"" & gb.NewLine & + "initrd = /boot/initrd" & gb.NewLine & + "read-only" & " \n \n" + ELSE + sSection = "image = " & sBootAddr &/ "vmlinuz-" & sShortAddr & gb.NewLine & "root = " & bInc.tag & gb.NewLine & "label = " & sEntryLbl & gb.NewLine & "append = \"" & sEntryApnd & "\"" & gb.NewLine & "initrd = " & sEntryInitrd & gb.NewLine & "read-only" & " \n \n" + ENDIF IF bInc.tag = ClsPartSel.sRoot AND MdlLiloOsList.bVlCliOption = TRUE THEN @@ -269,7 +278,7 @@ NEXT sWinSection = "other = " & tb.Tag & gb.NewLine & "label = " & tb.Text & gb.NewLine & - "table = " & tb.Tag & "\n" & gb.NewLine + "table = " & Left(tb.Tag, 8) & "\n" & gb.NewLine ELSE sWinSection = "" END IF Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Sun Aug 24 10:59:38 2008 @@ -56,11 +56,19 @@ FrmDiskPart.tlBanner.Text = "<h3>Loading gparted ... Please wait</h3>" SHELL "/usr/sbin/gparted" WAIT 1 - + aHandle = Desktop.Find("", "*partedbi*", "") + i = 0 + IF aHandle.Count = 0 THEN 'lets give it a chance to start + REPEAT + WAIT 2 + aHandle = Desktop.Find("", "*partedbi*", "") + INC i + UNTIL + aHandle.Count > 0 OR i > 5 + END IF 'Message(aHandle.count) 'RETURN - ' ' ' ' ' ' ' ' ' aHandle = Desktop.Find("GParted") @@ -90,7 +98,6 @@ ' aHandle.Count > 0 OR i = sWons.count - 1 ' END IF - IF aHandle.Count = 0 THEN Message("Setup is unable to successfully run gparted on this system. This may be a sign of \n" & "a bad install media. Setup cannot continue.") Modified: branches/iVL/MdlInstallCustom.module ============================================================================== --- branches/iVL/MdlInstallCustom.module (original) +++ branches/iVL/MdlInstallCustom.module Sun Aug 24 10:59:38 2008 @@ -85,10 +85,14 @@ ' Installation complete.... FrmInstallSys.pbInstallProg.Value = 1 FrmInstallSys.pbInstallProg2.Value = 1 - Message("Vectorlinux is now installed on your system . Enjoy!") + 'Message.Info("packages have been installed in your system. Please click next to configure it.") + FrmInstallSys.tlBanner.Text = "Vectorlinux is now installed in your system. Please click next to configure it." + FrmInstallSys.tlCurrPkg.Text = "packages have been installed in your system. Please click next to configure it." WITH FMain .btQuit.Enabled = TRUE .btQuit.ForeColor = Color.Black + .btnext.Enabled = TRUE + .btnext.ForeColor = Color.Black END WITH 'MdlCore.unlock_gui() END @@ -401,7 +405,10 @@ PRINT "Package " & iPkgNum & " of " & iPkgCnt MdlSetup.SHOW_PROGRESS_CONTROLS() FrmInstallSys.tlCurrPkg.Text = "Processing " & File.Name(sPackagePath) - hproc = SHELL "install-pkg " & sPackagePath & Space(1) & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ + 'hproc = SHELL "install-pkg " & sPackagePath & Space(1) & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ + IF Right(sPackagePath, 3) LIKE "t?z" THEN + hproc = SHELL "installpkg " & sPackagePath & " -R " & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ + ENDIF WAIT 1 IF hproc.State = Process.Running THEN REPEAT Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Sun Aug 24 10:59:38 2008 @@ -27,7 +27,7 @@ ' this is where we need to set the mount target - 'ClsGlobal.sTargetMnt = "/mnt/target" + ClsGlobal.sTargetMnt = "/mnt/target" IF Exist(ClsGlobal.sTargetMnt) = FALSE THEN @@ -58,21 +58,16 @@ SHELL "mkdir -p " & ClsGlobal.sTargetMnt &/ "tmp" WAIT SHELL "mount " & ClsPartSel.sTmp & Space(1) & ClsGlobal.sTargetMnt &/ "tmp -t " & ClsPartSel.fTmp WAIT END IF - - - + 'WRITE THE NEW FSTAB NOW, RIGHT BEFORE INSTALLING PACKAGES. 'ME.WRITE_NEW_FSTAB() ' do this from the install form 'redirect to packages install 'ME.INSTALL_PACKAGES() ' FROM HERE, DECIDE WHICH WAY TO GO - + 'ClsGlobal.sTargetMnt = "/home/moises/mnt/target" ' for testing only - - - IF ClsPkgSel.bCustom = TRUE THEN MdlInstallCustom.PERFORM_CUSTOM_INSTALL ELSE @@ -88,6 +83,8 @@ DIM sMountPoint AS String DIM sMntOpts AS String DIM i, ii AS Integer + DIM sLinPart AS String + DIM sLinMntPnt AS String DIM sWinPart AS String DIM sWinMntPnt AS String DIM sFstab AS String @@ -96,7 +93,7 @@ 'FOR testing purposes - ClsPartSel.sRoot = "/home/moises/mnt/target" + 'ClsPartSel.sRoot = "/mnt/target" @@ -177,7 +174,12 @@ IF ClsPartSel.sTmp THEN sFstab = sFstab & gb.NewLine & ClsPartSel.sTmp & " /tmp " & LCase(ClsPartSel.fTmp) & " " & ME.fS_oPTIONS(LCase(ClsPartSel.fTmp)) & " 0 2 " END IF - +IF ClsPartSel.sLinuxPart THEN + FOR i = 0 TO ClsPartSel.sLinuxPart.Count - 1 + sLinPart = ClsPartSel.sLinuxPart[i] + sLinMntPnt = ClsPartSel.sLinuxPart[i] + NEXT +ENDIF sFstab = sFstab & "\n\n" & "# Shared Windows/Linux partition" & "#/dev/hda1 /mnt/dos msdos umask=0 0 0 \n" & @@ -295,7 +297,7 @@ END WITH iPkgCnt = MdlSetup.CALCULATE_PACKAGE_COUNT(FALSE) - Message.Info("Total packages = " & iPkgCnt) + 'Message.Info("Total packages = " & iPkgCnt) PRINT "Installing bulks" MdlSetup.SHOW_PROGRESS_CONTROLS() iret = ME.INSTALL_BULK_PACKAGES() @@ -336,10 +338,14 @@ MdlInstallSys.WRITE_NEW_FSTAB() FrmInstallSys.pbInstallProg.Value = 1 FrmInstallSys.pbInstallProg2.Value = 1 - Message.Info("Vectorlinux is now installed in your system. Please Exit the installer") + 'Message.Info("Vectorlinux is now installed in your system. Please click next to configure it.") + FrmInstallSys.tlBanner.Text = "Vectorlinux is now installed in your system. Please click next to configure it." + FrmInstallSys.tlCurrPkg.Text = "packages have been installed in your system. Please click next to configure it." WITH FMain .btQuit.Enabled = TRUE .btQuit.ForeColor = Color.Black + .btnext.Enabled = TRUE + .btnext.ForeColor = Color.Black END WITH 'MdlCore.unlock_gui() END @@ -468,7 +474,10 @@ sDump = "" sErr = "" - hproc = SHELL "install-pkg " & sPath_To_Package & Space(1) & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ + 'hproc = SHELL "install-pkg " & sPath_To_Package & Space(1) & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ + IF Right(sPath_To_Package, 3) LIKE "t?z" THEN + hproc = SHELL "installpkg " & sPath_To_Package & " -R " & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ + ENDIF END @@ -641,7 +650,8 @@ sDump = "" sErr = "" - hproc = SHELL "install-pkg " & sTlzBasePath &/ sTlzPath &/ sTlzName & Space(1) & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ + 'hproc = SHELL "install-pkg " & sTlzBasePath &/ sTlzPath &/ sTlzName & Space(1) & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ + hproc = SHELL "installpkg " & sTlzBasePath &/ sTlzPath &/ sTlzName & " -R " & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ WAIT 1 IF hproc.State = Process.Running THEN REPEAT @@ -699,7 +709,8 @@ PRINT sTlzName & sTlzPath 'sDump = "" 'sErr = "" - FrmInstallSys.tlCurrPkg.Text = "Installing " & File.Name(sTlzPath) & " ..." + 'FrmInstallSys.tlCurrPkg.Text = "Installing " & File.Name(sTlzPath) & " ..." + FrmInstallSys.tlCurrPkg.Text = "Installing Required Packages ..." 'FrmInstallSys.pbInstallProg.Value = 0.0 'figure out the progress again Modified: branches/iVL/MdlLiloOsList.module ============================================================================== --- branches/iVL/MdlLiloOsList.module (original) +++ branches/iVL/MdlLiloOsList.module Sun Aug 24 10:59:38 2008 @@ -251,10 +251,14 @@ FrmLilo.TabStrip1.Count = FrmLilo.TabStrip1.count + 1 'arrLinux.Count - 1 sLiloDesc = ME.ID_DISTRO("/tmp/lilo_tmp") - + WITH FrmLilo.TabStrip1 .Index = FrmLilo.TabStrip1.count - 1 + IF arrLinux[i] = ClsPartSel.sRoot THEN + .text = "Linux" + ELSE .text = sLiloDesc & "-" & sShortAddr + ENDIF tl = NEW TextLabel(FrmLilo.TabStrip1) AS "OSIntro" WITH tl .text = "<b>Operating system installed in " & arrLinux[i] & "</b>" Modified: branches/iVL/MdlPartSel.module ============================================================================== --- branches/iVL/MdlPartSel.module (original) +++ branches/iVL/MdlPartSel.module Sun Aug 24 10:59:38 2008 @@ -194,7 +194,7 @@ END IF - + 'SHELL " probepart | grep -i \" *swap$\" | cut -f 1 -d \' \' | grep -e /dev" TO sSwapList SHELL "probepart | grep -i \"swap\" | cut -f 1 -d \' \' | grep -e \"/dev\"" TO sSwapList @@ -219,8 +219,7 @@ .Height = 27 .Alignment = Align.Normal .tag = sSwaps[ii] - END WITH - + END WITH cb = NEW ComboBox(FrmPartSel.scrollPartitions) AS "swapsel" WITH cb .y = y @@ -230,12 +229,13 @@ .Add("Swap") .tag = sPart END WITH + y = y + cb.height + 4 ME.oSwaps.Add(cb) y = y + cb.Height + 4 NEXT END IF - + FOR EACH cb IN MdlPartSel.oMountPoints IF cb.width > iWidth THEN iWidth = cb.Width @@ -358,7 +358,8 @@ END PUBLIC SUB SET_SELECTED_PARTITION(SPartition AS String, sMountPoint AS String) - + DIM i AS Integer + i = 0 SELECT CASE sMountPoint CASE "/" FrmPartSel.sRootAddr = SPartition @@ -378,6 +379,9 @@ CASE "/tmp" FrmPartSel.sTmpAddr = SPartition ClsPartSel.sTmp = SPartition + 'CASE LIKE "/mnt/" + ' ClsPartSel.sLinuxPart[i] = SPartition + 'INC i END SELECT END Modified: branches/iVL/installer.gambas ============================================================================== Binary files. No diff available. |
From: <cod...@go...> - 2008-08-22 14:59:24
|
Author: M0E.lnx Date: Fri Aug 22 07:58:59 2008 New Revision: 138 Modified: branches/iVL/MdlDiskPart.module Log: - Implemented new way to embed gparted. Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Fri Aug 22 07:58:59 2008 @@ -57,9 +57,9 @@ SHELL "/usr/sbin/gparted" WAIT 1 - aHandle = Desktop.Find( LIKE "gparted") - Message(aHandle.count) - RETURN + aHandle = Desktop.Find("", "*partedbi*", "") + 'Message(aHandle.count) + 'RETURN ' ' ' ' ' ' |
From: M0E L. <m0...@gm...> - 2008-08-22 13:15:32
|
If I may add something here while we're in the subject of mounting and stuff.. Our util-linux is outdated.. I've had problems with HAL because of this old package. Not sure this affects vl-hot at all, but it may be work upgrading before VL6 goes out On Thu, Aug 21, 2008 at 10:19 AM, Jose J. Rodriguez <jo...@gm...> wrote: > On 8/18/08, Jose J. Rodriguez <jo...@gm...> wrote: >> I noticed that vl-hot-config was screwing up vl-hot.conf, as it was >> saving empty strings for the codepages and charsets, causing the mount >> command to fail. Anyway, I got them hard-wired in again, though I'm >> not entirely sure the lists are ok yet, hoping for feedback on this. >> I'm trying to commit to the svn trunk, but the connection here is dead >> slow right now. Il'l let you all know when... >> > > Managed to commit, but then I noticed the ISO charsets were making the > mount command fail. Took 2 commits to get it right, lol. Please > checkout and test. I will be off on vacation/holiday to the beach for > a couple of weeks and I'm not sure I can have a package ready and > uploaded before leaving. > > Regards, > Joe1962 > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Vectorlinux-devel mailing list > Vec...@li... > https://lists.sourceforge.net/lists/listinfo/vectorlinux-devel > |
From: <cod...@go...> - 2008-08-21 21:53:30
|
Author: M0E.lnx Date: Thu Aug 21 14:53:04 2008 New Revision: 137 Modified: branches/iVL/MdlDiskPart.module branches/iVL/MdlInstallSys.module Log: - Remove old code that activated swap partition. Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Thu Aug 21 14:53:04 2008 @@ -56,20 +56,27 @@ FrmDiskPart.tlBanner.Text = "<h3>Loading gparted ... Please wait</h3>" SHELL "/usr/sbin/gparted" WAIT 1 - aHandle = Desktop.Find("GParted") - IF aHandle.count = 0 THEN - WAIT 1 - aHandle = Desktop.Find("GParted") - IF aHandle.Count = 0 THEN - ' this is too much... let's try to find it using the drive name - aHandle = Desktop.Find(sType & " - GParted") - END IF - END IF + + aHandle = Desktop.Find( LIKE "gparted") + Message(aHandle.count) + RETURN - - 'aHandle = Desktop.Find("*" & " - GParted", "gpartedbin") - aHandle = Desktop.Find(sType & " - GParted") - + ' ' ' + ' ' ' + ' ' ' aHandle = Desktop.Find("GParted") + ' ' ' IF aHandle.count = 0 THEN + ' ' ' WAIT 1 + ' ' ' aHandle = Desktop.Find("GParted") + ' ' ' IF aHandle.Count = 0 THEN + ' ' ' ' this is too much... let's try to find it using the drive name + ' ' ' aHandle = Desktop.Find(sType & " - GParted") + ' ' ' END IF + ' ' ' END IF + ' ' ' + ' ' ' + ' ' ' 'aHandle = Desktop.Find("*" & " - GParted", "gpartedbin") + ' ' ' aHandle = Desktop.Find(sType & " - GParted") + ' ' ' ' i = 0 ' aHandle = Desktop.Find("", Trim(sWons[i])) Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Thu Aug 21 14:53:04 2008 @@ -222,8 +222,8 @@ "# The 'sw' option means auto activating with 'swapon -a'.\n" ' This will add all the swap partitions to fstab FOR EACH cb IN MdlPartSel.oSwaps - sFstab = sFstab & gb.NewLine & - cb.Tag & Space(1) & "none" & Space(1) & "swap" & Space(1) & "sw" * Space(1) & "0" & Space(1) & "0" & gb.NewLine + sFstab = sFstab & "\n" & + cb.Tag & Space(1) & "none" & Space(1) & "swap" & Space(1) & "sw" & Space(1) & "0" & Space(1) & "0" & gb.NewLine NEXT |
From: <cod...@go...> - 2008-08-21 21:30:27
|
Author: M0E.lnx Date: Thu Aug 21 14:29:43 2008 New Revision: 136 Modified: branches/iVL/MdlInstallSys.module Log: - Remove old code that activated swap partition. Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Thu Aug 21 14:29:43 2008 @@ -59,10 +59,7 @@ SHELL "mount " & ClsPartSel.sTmp & Space(1) & ClsGlobal.sTargetMnt &/ "tmp -t " & ClsPartSel.fTmp WAIT END IF - ' see if there is a swap partition and use it - IF ClsPartSel.sSwap THEN - SHELL "swapon -a " WAIT - END IF + 'WRITE THE NEW FSTAB NOW, RIGHT BEFORE INSTALLING PACKAGES. @@ -71,7 +68,7 @@ 'ME.INSTALL_PACKAGES() ' FROM HERE, DECIDE WHICH WAY TO GO - ClsGlobal.sTargetMnt = "/home/moises/mnt/target" ' for testing only + 'ClsGlobal.sTargetMnt = "/home/moises/mnt/target" ' for testing only |
From: <cod...@go...> - 2008-08-21 21:22:26
|
Author: M0E.lnx Date: Thu Aug 21 14:21:33 2008 New Revision: 135 Modified: branches/iVL/MdlPartSel.module Log: - Fixed object positioning problem with swap partitions on mdlPartSel Modified: branches/iVL/MdlPartSel.module ============================================================================== --- branches/iVL/MdlPartSel.module (original) +++ branches/iVL/MdlPartSel.module Thu Aug 21 14:21:33 2008 @@ -231,6 +231,8 @@ .tag = sPart END WITH ME.oSwaps.Add(cb) + + y = y + cb.Height + 4 NEXT END IF |
From: <cod...@go...> - 2008-08-21 21:02:21
|
Author: M0E.lnx Date: Thu Aug 21 14:01:36 2008 New Revision: 134 Modified: branches/iVL/FrmInstallSys.class branches/iVL/FrmLilo.class branches/iVL/MdlConfLilo.module branches/iVL/MdlDiskPart.module branches/iVL/MdlInstallSys.module branches/iVL/MdlPartSel.module Log: - Added small snipplet to handle installing on a system with both, SATA a IDE drives - Added option to mount linux partitions to /mnt/xdx - Added code to handle more than one swap partition. All swap space will be enabled during the Install, and all will be listed in /etc/fstab. Modified: branches/iVL/FrmInstallSys.class ============================================================================== --- branches/iVL/FrmInstallSys.class (original) +++ branches/iVL/FrmInstallSys.class Thu Aug 21 14:01:36 2008 @@ -26,12 +26,12 @@ FMain.tvPlan["Inst2"].Picture = MdlCore.sNowPic FMain.tvPlan["Inst2"].Selected = TRUE - + MdlInstallSys.ACTIVATE_SWAP_SPACE() ' activate swap for the current install - 'MdlPartFrmt.PREPARE_ALL_PARTITIONS() ' formats partitions and mounts them + MdlPartFrmt.PREPARE_ALL_PARTITIONS() ' formats partitions and mounts them END @@ -49,7 +49,7 @@ 'STOP EVENT -'ME.BEGIN_PROCESS() ' COMMENTED FOR TESTING PURPOSES +ME.BEGIN_PROCESS() ' COMMENTED FOR TESTING PURPOSES Modified: branches/iVL/FrmLilo.class ============================================================================== --- branches/iVL/FrmLilo.class (original) +++ branches/iVL/FrmLilo.class Thu Aug 21 14:01:36 2008 @@ -21,7 +21,7 @@ PUBLIC SUB Form_Open() -ClsPartSel.sRoot = "/dev/sdb1" ' +'ClsPartSel.sRoot = "/dev/sdb1" ' FMain.FrmCurr = ME FMain.tvPlan["Conf0"].Selected = TRUE FMain.tvPlan["Conf0"].Picture = MdlCore.sNowPic Modified: branches/iVL/MdlConfLilo.module ============================================================================== --- branches/iVL/MdlConfLilo.module (original) +++ branches/iVL/MdlConfLilo.module Thu Aug 21 14:01:36 2008 @@ -73,7 +73,7 @@ END IF ' THE FOLLOWING LINE IS FOR TESTING ONLY - ClsGlobal.sTargetMnt = "/tmp" + 'ClsGlobal.sTargetMnt = "/tmp" File.Save(ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.conf", sOut) IF ERROR THEN Message.Error(Error.Text & gb.NewLine & Error.Where) Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Thu Aug 21 14:01:36 2008 @@ -28,6 +28,7 @@ DIM sWins AS String = "gpartedbin,Gpartedbin" '" GParted, / dev / sda - GParted, / dev / hda - GParted "" DIM sWons AS String[] = Split(sWins, ",") DIM sType AS String + 'DIM sTypeArr AS String[] 'Desktop.Find("", "GParted") ' The window can be found on the Desktop WM_CLASS property which can be seen via the xprop application @@ -39,7 +40,13 @@ SHELL "probedisk | grep -v \'cdrom\' | cut -f 1 -d \'|\' | grep \'a\'" TO sType stype = Trim(sType) 'Message(sType) - + IF stype = "" THEN + Message.Error("VectorLinux is unable to determine the type of hard disks on your system. <br>" & + "It is still possible to install VectorLinux on your system, but you need to pre-partition your disks first") + ELSE IF InStr(sType, "\n") > 0 THEN + ' more than one type of disk was found... by default, gparted will load using /dev/hda first + sType = "/dev/hda" + END IF IF Exist("/usr/sbin/gparted") = FALSE THEN Message.Error("Gparted was not found on this system. Please install gparted and try again") Modified: branches/iVL/MdlInstallSys.module ============================================================================== --- branches/iVL/MdlInstallSys.module (original) +++ branches/iVL/MdlInstallSys.module Thu Aug 21 14:01:36 2008 @@ -95,6 +95,7 @@ DIM sWinMntPnt AS String DIM sFstab AS String DIM sPartFmt AS String + DIM cb AS ComboBox 'FOR testing purposes @@ -222,13 +223,21 @@ "#/dev/sda1 /mnt/pendrive vfat fmask=111,dmask=0,noauto,user,quiet,shortname=mixed 0 0\n\n" & "# Swap partitions\n" & "# The 'sw' option means auto activating with 'swapon -a'.\n" -IF ClsPartSel.sSwap THEN - ' take a second here to throw the swap line to the current running system - SHELL "echo \'" & ClsPartSel.sSwap & Space(5) & "none" & Space(5) & "swap" & Space(5) & "sw" & Space(5) & "0" & Space(5) & "0" & "\' >> /etc/fstab" WAIT - 'write the same line to the future fstab - sFstab = sFstab & gb.NewLine & - ClsPartSel.sSwap & Space(5) & "none" & Space(5) & "swap" & Space(5) & "sw" & Space(5) & "0" & Space(5) & "0" -END IF + ' This will add all the swap partitions to fstab + FOR EACH cb IN MdlPartSel.oSwaps + sFstab = sFstab & gb.NewLine & + cb.Tag & Space(1) & "none" & Space(1) & "swap" & Space(1) & "sw" * Space(1) & "0" & Space(1) & "0" & gb.NewLine + NEXT + + + +' ' ' IF ClsPartSel.sSwap THEN +' ' ' ' take a second here to throw the swap line to the current running system +' ' ' SHELL "echo \'" & ClsPartSel.sSwap & Space(5) & "none" & Space(5) & "swap" & Space(5) & "sw" & Space(5) & "0" & Space(5) & "0" & "\' >> /etc/fstab" WAIT +' ' ' 'write the same line to the future fstab +' ' ' sFstab = sFstab & gb.NewLine & +' ' ' ClsPartSel.sSwap & Space(5) & "none" & Space(5) & "swap" & Space(5) & "sw" & Space(5) & "0" & Space(5) & "0" +' ' ' END IF sFstab = sFstab & "\n" ' Wheewww!... that's the whole fstab there... Please fix the win partitions @@ -263,6 +272,19 @@ RETURN sMntOpts END +PUBLIC SUB ACTIVATE_SWAP_SPACE() + + DIM cb AS ComboBox + + FOR EACH cb IN MdlPartSel.oSwaps + SHELL "echo \'" & cb.Tag & " none swap sw 0 0 \' >> /etc/fstab" WAIT + NEXT + SHELL "swapon -a" WAIT + +END + + + PUBLIC SUB PERFORM_FULL_INSTALL() @@ -727,36 +749,7 @@ SHELL "cat " & ClsGlobal.sSourceMnt &/ "veclinux" &/ "SETUP.CONF" & " | grep ^CONF" TO sRawList 'Message.Info(sRawList) PRINT sRawList & " config" -' IF InStr(sRawList, "\n") THEN -' PRINT "Multiple config files found ... starting at the top of the list" -' -' sList = Split(sRawList, "\n") -' FOR i = 0 TO sList.count - 1 -' sCOnfLine = Trim(sList[i]) -' IF Left(sCOnfLine, Len("CONF")) = "CONF" THEN -' sPkg = Right(sCOnfLine, Len(sCOnfLine) - InStr(sCOnfLine, "\'")) -' 'PRINT sPkg -' sLinarr = Split(sPkg, ":") -' sPkgPath = sLinarr[0] -' -' 'PRINT sPkgPath -' ' now install the packages -' INC iPkgNum -' ' This may need to be installed as a bulk rather than a package -' 'hproc = SHELL "install-pkg " & ClsGlobal.sSourceMnt &/ "veclinux" &/ sPkgPath & Space(1) & ClsGlobal.sTargetMnt & " || echo \'FAILED\'" FOR READ -' ME.BULK_INSTALL(ClsGlobal.sSourceMnt &/ "veclinux" &/ sPkgPath) -' FrmInstallSys.pbInstallProg2.Value = MdlSetup.UPDATE_OVERALL_PROGRESS(iPkgCnt, iPkgNum) -' WAIT 1 -' IF hproc.State = Process.Running THEN -' REPEAT -' WAIT 2 -' UNTIL -' hproc.State = Process.Stopped -' ' INC iPkgNum -' END IF -' END IF -' NEXT -' ELSE ' only one line found + PRINT "Found a single CONF package... Installing it now" sRawList = Trim(sRawList) sLinarr = Split(sRawList, ":") Modified: branches/iVL/MdlPartSel.module ============================================================================== --- branches/iVL/MdlPartSel.module (original) +++ branches/iVL/MdlPartSel.module Thu Aug 21 14:01:36 2008 @@ -18,6 +18,7 @@ PUBLIC oMountPoints AS Object[] PUBLIC oFsTypes AS Object[] +PUBLIC oSwaps AS Object[] PUBLIC SUB DISPLAY_PARTITION_OPTIONS() @@ -37,10 +38,12 @@ DIM iX AS Integer DIM iWidth AS Integer DIM iCol1, icol2, iCol3 AS Integer + DIM sSwaps AS String[] + DIM ii AS Integer ' fire up the arrays oFsTypes = NEW Object[] oMountPoints = NEW Object[] - + oSwaps = NEW Object[] ' We will mount the partitions first, and then figure out their size SHELL " probepart | grep -e \" Linux$\" | cut -f 1 -d \' \' | grep /dev" TO sDump1 @@ -135,6 +138,7 @@ .Add("/usr") .Add("/var") .Add("/tmp") + .Add("/mnt" &/ Right(.tag, Len(.tag) - RInStr(.tag, "/"))) ' Add option to mount linux partitions to /mnt/xdx .Add("Swap") IF InStr(FrmSelISO.lstInstallableImg.Text, .tag) THEN .Enabled = FALSE @@ -196,55 +200,40 @@ sSwapList = Trim(sSwapList) IF sSwapList <> "" THEN - 'Message.Info(sSwapList) - IF InStr(sSwapList, gb.NewLine) THEN + +' ' ' Message.Info(sSwapList) + 'IF InStr(sSwapList, gb.NewLine) THEN 'several swap partitions found 'how do we deal w/ this? - ELSE - spart = Trim(sSwapList) - 'SHELL "export " & sSwapList & "=$(df -h | grep -i swap) | cut -f 2 -d \' \'" TO vSwapSize - SHELL " export sw=$(probepart | grep -i \" *swap$\") && echo $sw | cut -f 4 -d \' \'" TO vSwapSize - 'Message(CStr(vSwapSize)) - IF vSwapSize <> "" THEN - 'vSwapSize = Trim(CStr(vSwapSize)) - 'Message.Info(vSwapSize) - iswapsize = CInt(vSwapSize) - - iswapsize = Round(iswapsize / 1024 / 1024, -2) - END IF - 'now create the swap label and combo box - tl = NEW TextLabel(FrmPartSel.scrollPartitions) AS "swlabel" - WITH tl - '.x = .Parent.x - .x = icol1 'FrmPartSel.tlPartRow.Left - .y = y - .Text = sPart & " ( " & CStr(iswapsize) & "G )" - .Width = lbwidth - .Height = 27 - .tag = "SwapLbl" - .Alignment = Align.Normal - ClsPartSel.sSwap = sPart - - END WITH - - ' now create a combobox with the swap-only option - cb = NEW ComboBox(FrmPartSel.scrollPartitions) AS "swapsel" - WITH cb - .y = y - '.x = lbwidth + 24 - .x = icol2 'FrmPartSel.tlPartRow2.Left - .Width = tl.Width - .tag = "swapSelection" - .ReadOnly = TRUE - .Add("Swap") - - END WITH + sSwaps = Split(sSwapList, "\n") + FOR ii = 0 TO sSwaps.count - 1 + sPart = Trim(sSwaps[ii]) + 'SHELL "export sw=$(parted " & Left(sSwaps[i], Len(sSwaps[i]) - 1) & " print | grep ^\' " & Right(sSwaps[i]) & "); echo $sw | cut -f 4 -d \' \'" TO vSwapSize + SHELL "export sw=$(parted " & Left(sPart, Len(sPart) - 1) & " print | grep ^\' " & Right(sPart) & "\'); echo $sw | cut -f 4 -d \' \'" TO vSwapSize + tl = NEW TextLabel(FrmPartSel.scrollPartitions) AS "swlabel" + WITH tl + .x = icol1 + .y = y + .text = sPart & " ( " & CStr(vSwapSize) & " )" + .Width = lbwidth + .Height = 27 + .Alignment = Align.Normal + .tag = sSwaps[ii] + END WITH - - - 'Message.Info("Swap total = " & iswapsize) + cb = NEW ComboBox(FrmPartSel.scrollPartitions) AS "swapsel" + WITH cb + .y = y + .x = icol2 + .width = tl.Width + .ReadOnly = TRUE + .Add("Swap") + .tag = sPart + END WITH + ME.oSwaps.Add(cb) + NEXT END IF -END IF + FOR EACH cb IN MdlPartSel.oMountPoints IF cb.width > iWidth THEN iWidth = cb.Width @@ -262,6 +251,18 @@ END + +PUBLIC SUB swapsel_click() + + DIM cb AS ComboBox + ' we need to set at least one swap partition + FOR EACH cb IN ME.oSwaps + ClsPartSel.sSwap = cb.Tag + NEXT + + +END + PUBLIC SUB MountPoints_CLick() @@ -306,6 +307,7 @@ sdropdwn.Add("Swap") sdropdwn.Text = "Swap" sdropdwn.Enabled = FALSE + ELSE IF sdropdwn.Text <> "Do not format" AND sdropdwn.Enabled = TRUE THEN sdropdwn.Enabled = TRUE |
From: Jose J. R. <jo...@gm...> - 2008-08-21 15:19:17
|
On 8/18/08, Jose J. Rodriguez <jo...@gm...> wrote: > I noticed that vl-hot-config was screwing up vl-hot.conf, as it was > saving empty strings for the codepages and charsets, causing the mount > command to fail. Anyway, I got them hard-wired in again, though I'm > not entirely sure the lists are ok yet, hoping for feedback on this. > I'm trying to commit to the svn trunk, but the connection here is dead > slow right now. Il'l let you all know when... > Managed to commit, but then I noticed the ISO charsets were making the mount command fail. Took 2 commits to get it right, lol. Please checkout and test. I will be off on vacation/holiday to the beach for a couple of weeks and I'm not sure I can have a package ready and uploaded before leaving. Regards, Joe1962 |
From: <cod...@go...> - 2008-08-20 21:03:56
|
Author: M0E.lnx Date: Wed Aug 20 14:03:05 2008 New Revision: 133 Modified: branches/iVL/FMain.class branches/iVL/MdlLiloOsList.module Log: - Changes to the way the tabstrip gets created / indexed at runtime. The previous method was returning an error Modified: branches/iVL/FMain.class ============================================================================== --- branches/iVL/FMain.class (original) +++ branches/iVL/FMain.class Wed Aug 20 14:03:05 2008 @@ -36,9 +36,9 @@ ClsGlobal.sSourceMnt = "/mnt" &/ "cdrom" 'FOR TESTING ONLY '/ THE FOLLOWING LINES HAVE BEEN COMMENTED FOR TESTING ONLY -' ' ' FrmSelISO.Reparent(ME.pnlWinHost) -' ' ' FrmSelISO.Width = pnlWinHost.Width -' ' ' FrmSelISO.Height = pnlWinHost.Height +FrmSelISO.Reparent(ME.pnlWinHost) +FrmSelISO.Width = pnlWinHost.Width +FrmSelISO.Height = pnlWinHost.Height iImg = Image.Load("images/installer.png").Stretch(400, 50) 'iImg.Resize(600, 80) @@ -72,12 +72,12 @@ 'ME.TreeView1.BackColor = Color.Transparent ME.AUTOSIZE_LEFT_PANE ' ' ' / THE FOLLOWING LINES HAVE BEEN IMPLEMENTED FOR TESTING PURPOSES -WITH FrmLilo -.Reparent(Fmain.pnlWinHost) -.Width = Fmain.pnlWinHost.Width -.Height = Fmain.pnlWinHost.Height -.Show -END WITH +' ' ' WITH FrmLilo +' ' ' .Reparent(Fmain.pnlWinHost) +' ' ' .Width = Fmain.pnlWinHost.Width +' ' ' .Height = Fmain.pnlWinHost.Height +' ' ' .Show +' ' ' END WITH END Modified: branches/iVL/MdlLiloOsList.module ============================================================================== --- branches/iVL/MdlLiloOsList.module (original) +++ branches/iVL/MdlLiloOsList.module Wed Aug 20 14:03:05 2008 @@ -253,7 +253,7 @@ sLiloDesc = ME.ID_DISTRO("/tmp/lilo_tmp") WITH FrmLilo.TabStrip1 - .Index = i + .Index = FrmLilo.TabStrip1.count - 1 .text = sLiloDesc & "-" & sShortAddr tl = NEW TextLabel(FrmLilo.TabStrip1) AS "OSIntro" WITH tl |
From: <cod...@go...> - 2008-08-20 20:18:18
|
Author: M0E.lnx Date: Wed Aug 20 13:17:48 2008 New Revision: 132 Modified: branches/iVL/.lang/FMain.pot branches/iVL/FMain.class branches/iVL/FrmLilo.class branches/iVL/FrmLilo.form branches/iVL/MdlConfLilo.module branches/iVL/MdlDiskPart.module branches/iVL/MdlPartSel.module Log: - Modified line that detects the swap partition to try to ensure detection - Added more code to look for "GParted" twice before trying the entire title string on the embedder Modified: branches/iVL/.lang/FMain.pot ============================================================================== --- branches/iVL/.lang/FMain.pot (original) +++ branches/iVL/.lang/FMain.pot Wed Aug 20 13:17:48 2008 @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FMain.class:281 +#: FMain.class:284 msgid "Process Overview" msgstr "" -#: FMain.class:300 +#: FMain.class:303 msgid "Next" msgstr "" -#: FMain.class:306 +#: FMain.class:309 msgid "Back" msgstr "" -#: FMain.class:312 +#: FMain.class:315 msgid "Exit" msgstr "" Modified: branches/iVL/FMain.class ============================================================================== --- branches/iVL/FMain.class (original) +++ branches/iVL/FMain.class Wed Aug 20 13:17:48 2008 @@ -33,10 +33,13 @@ MdlCore.LOCK_GUI 'MdlCore.LOCK_GUI() ClsGlobal.sBackNav = NEW Object[] -ClsGlobal.sSourceMnt = "/mnt" &/ "cdrom" -FrmSelISO.Reparent(ME.pnlWinHost) -FrmSelISO.Width = pnlWinHost.Width -FrmSelISO.Height = pnlWinHost.Height +ClsGlobal.sSourceMnt = "/mnt" &/ "cdrom" 'FOR TESTING ONLY +'/ THE FOLLOWING LINES HAVE BEEN COMMENTED FOR TESTING ONLY + +' ' ' FrmSelISO.Reparent(ME.pnlWinHost) +' ' ' FrmSelISO.Width = pnlWinHost.Width +' ' ' FrmSelISO.Height = pnlWinHost.Height + iImg = Image.Load("images/installer.png").Stretch(400, 50) 'iImg.Resize(600, 80) PictureBox1.Resize(iImg.Width, iImg.Height) @@ -44,7 +47,7 @@ PictureBox1.Background = Color.SelectedBackground PictureBox1.Stretch = TRUE MdlCore.PREPARE_INSTALL_LAYOUT -FrmSelISO.Reparent(ME.pnlwinhost) + 'FrmSelISO.Show 'FrmSelISO.Hide @@ -68,13 +71,13 @@ END WITH 'ME.TreeView1.BackColor = Color.Transparent ME.AUTOSIZE_LEFT_PANE -' ' ' -' ' ' WITH FrmLilo -' ' ' .Reparent(Fmain.pnlWinHost) -' ' ' .Width = Fmain.pnlWinHost.Width -' ' ' .Height = Fmain.pnlWinHost.Height -' ' ' .Show -' ' ' END WITH +' ' ' / THE FOLLOWING LINES HAVE BEEN IMPLEMENTED FOR TESTING PURPOSES +WITH FrmLilo +.Reparent(Fmain.pnlWinHost) +.Width = Fmain.pnlWinHost.Width +.Height = Fmain.pnlWinHost.Height +.Show +END WITH END Modified: branches/iVL/FrmLilo.class ============================================================================== --- branches/iVL/FrmLilo.class (original) +++ branches/iVL/FrmLilo.class Wed Aug 20 13:17:48 2008 @@ -21,7 +21,7 @@ PUBLIC SUB Form_Open() -'ClsPartSel.sRoot = "/dev/sdb1" ' +ClsPartSel.sRoot = "/dev/sdb1" ' FMain.FrmCurr = ME FMain.tvPlan["Conf0"].Selected = TRUE FMain.tvPlan["Conf0"].Picture = MdlCore.sNowPic Modified: branches/iVL/FrmLilo.form ============================================================================== --- branches/iVL/FrmLilo.form (original) +++ branches/iVL/FrmLilo.form Wed Aug 20 13:17:48 2008 @@ -1,7 +1,7 @@ # Gambas Form File 2.0 { Form Form - MoveScaled(0,0,70,69) + MoveScaled(0,0,74,69) Text = ("") { tlBanner TextLabel MoveScaled(1,1,58,4.4286) @@ -12,7 +12,7 @@ Text = ("Don't Install Lilo") } { TabStrip1 TabStrip - MoveScaled(2,27,61,28) + MoveScaled(1,27,71,40) Index = 0 Text = ("Tab 0") Index = 0 Modified: branches/iVL/MdlConfLilo.module ============================================================================== --- branches/iVL/MdlConfLilo.module (original) +++ branches/iVL/MdlConfLilo.module Wed Aug 20 13:17:48 2008 @@ -72,6 +72,9 @@ TRY MOVE ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.conf" TO ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.dist" END IF + ' THE FOLLOWING LINE IS FOR TESTING ONLY + ClsGlobal.sTargetMnt = "/tmp" + File.Save(ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.conf", sOut) IF ERROR THEN Message.Error(Error.Text & gb.NewLine & Error.Where) ' to make sure the new changes are written to the MBR, we need a copy in the local running install Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Wed Aug 20 13:17:48 2008 @@ -40,8 +40,7 @@ stype = Trim(sType) 'Message(sType) - - + IF Exist("/usr/sbin/gparted") = FALSE THEN Message.Error("Gparted was not found on this system. Please install gparted and try again") RETURN @@ -49,7 +48,17 @@ FrmDiskPart.tlBanner.Text = "<h3>Loading gparted ... Please wait</h3>" SHELL "/usr/sbin/gparted" - WAIT 1.5 + WAIT 1 + aHandle = Desktop.Find("GParted") + IF aHandle.count = 0 THEN + WAIT 1 + aHandle = Desktop.Find("GParted") + IF aHandle.Count = 0 THEN + ' this is too much... let's try to find it using the drive name + aHandle = Desktop.Find(sType & " - GParted") + END IF + END IF + 'aHandle = Desktop.Find("*" & " - GParted", "gpartedbin") aHandle = Desktop.Find(sType & " - GParted") Modified: branches/iVL/MdlPartSel.module ============================================================================== --- branches/iVL/MdlPartSel.module (original) +++ branches/iVL/MdlPartSel.module Wed Aug 20 13:17:48 2008 @@ -191,7 +191,8 @@ END IF - SHELL " probepart | grep -i \" *swap$\" | cut -f 1 -d \' \' | grep -e /dev" TO sSwapList + 'SHELL " probepart | grep -i \" *swap$\" | cut -f 1 -d \' \' | grep -e /dev" TO sSwapList + SHELL "probepart | grep -i \"swap\" | cut -f 1 -d \' \' | grep -e \"/dev\"" TO sSwapList sSwapList = Trim(sSwapList) IF sSwapList <> "" THEN |
From: <cod...@go...> - 2008-08-20 17:44:49
|
Author: M0E.lnx Date: Wed Aug 20 10:44:49 2008 New Revision: 131 Modified: branches/iVL/MdlDiskPart.module Log: - Modifications to the gparted embedder. This time the isntaller uses probedisk to determine what kind of drives are present in the system, and then uses it's results combined with the " - GParted" string to find the running instance of gparted in the desktop. Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Wed Aug 20 10:44:49 2008 @@ -27,30 +27,45 @@ DIM sDump AS String DIM sWins AS String = "gpartedbin,Gpartedbin" '" GParted, / dev / sda - GParted, / dev / hda - GParted "" DIM sWons AS String[] = Split(sWins, ",") + DIM sType AS String 'Desktop.Find("", "GParted") ' The window can be found on the Desktop WM_CLASS property which can be seen via the xprop application ' We may need to implement this method here instead of the win window title method. + ' For now, try to determine what type of drive thsi is.. + ' The following line will get the first listed drive (/dev/sda or /dev/hda) and use that + ' as a starting point to search for a running instance of gparted + SHELL "probedisk | grep -v \'cdrom\' | cut -f 1 -d \'|\' | grep \'a\'" TO sType + stype = Trim(sType) + 'Message(sType) + + + IF Exist("/usr/sbin/gparted") = FALSE THEN Message.Error("Gparted was not found on this system. Please install gparted and try again") RETURN END IF - FrmDiskPart.tlBanner.Text = "<h3>Loading gparted .... Please wait</h3>" + FrmDiskPart.tlBanner.Text = "<h3>Loading gparted ... Please wait</h3>" SHELL "/usr/sbin/gparted" - WAIT + WAIT 1.5 - i = 0 - aHandle = Desktop.Find("", Trim(sWons[i])) - IF aHandle.Count = 0 THEN - REPEAT - WAIT 2 - INC i - aHandle = Desktop.Find("", sWons[i]) - UNTIL - aHandle.Count > 0 OR i = sWons.count - 1 - END IF + 'aHandle = Desktop.Find("*" & " - GParted", "gpartedbin") + aHandle = Desktop.Find(sType & " - GParted") + + + ' i = 0 + ' aHandle = Desktop.Find("", Trim(sWons[i])) + ' WAIT + ' IF aHandle.Count = 0 THEN + ' REPEAT + ' WAIT 2 + ' INC i + ' aHandle = Desktop.Find("", sWons[i]) + ' UNTIL + ' aHandle.Count > 0 OR i = sWons.count - 1 + ' END IF IF aHandle.Count = 0 THEN @@ -60,7 +75,7 @@ 'END IF ELSE IF aHandle.Count >= 2 THEN - Message("Several windows found. I take the first one!") + Message("Several windows found. I will take the first one!") ENDIF 'ELSE iHandle = aHandle[0] |
From: <cod...@go...> - 2008-08-19 21:29:24
|
Author: M0E.lnx Date: Tue Aug 19 14:28:29 2008 New Revision: 130 Removed: branches/iVL/FrmLiloOsList.class branches/iVL/FrmLiloOsList.form branches/iVL/ToDo Modified: branches/iVL/.lang/FMain.pot branches/iVL/.project branches/iVL/FMain.class branches/iVL/FrmLilo.class branches/iVL/FrmLilo.form branches/iVL/MdlConfLilo.module branches/iVL/MdlDiskPart.module branches/iVL/MdlLiloOsList.module Log: - Lilo configutation is done ... ready for testing. (please report issues) * NOTE: Embedded GParted. A window can be found on the desktop by it's tittle, class, or role. GParted reports Both, title and class to the WM (Using xprop finds class). We need a way to search for it using the class property and see if that would give us a more accurate shot at embedding it into the installer. Modified: branches/iVL/.lang/FMain.pot ============================================================================== --- branches/iVL/.lang/FMain.pot (original) +++ branches/iVL/.lang/FMain.pot Tue Aug 19 14:28:29 2008 @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FMain.class:274 +#: FMain.class:281 msgid "Process Overview" msgstr "" -#: FMain.class:293 +#: FMain.class:300 msgid "Next" msgstr "" -#: FMain.class:299 +#: FMain.class:306 msgid "Back" msgstr "" -#: FMain.class:305 +#: FMain.class:312 msgid "Exit" msgstr "" Modified: branches/iVL/.project ============================================================================== --- branches/iVL/.project (original) +++ branches/iVL/.project Tue Aug 19 14:28:29 2008 @@ -1,6 +1,6 @@ # Gambas Project File 2.0 Title=VectorLinux Installer -Startup=FrmLilo +Startup=MdlCore Version=0.0.33 Library=gb.gtk Library=gb.form Modified: branches/iVL/FMain.class ============================================================================== --- branches/iVL/FMain.class (original) +++ branches/iVL/FMain.class Tue Aug 19 14:28:29 2008 @@ -213,7 +213,14 @@ frmNext = FrmLilo CASE "FrmLilo" - frmNext = FrmLiloOsList + ' Now that lilo has been setup, write it to the config + MdlConfLilo.GENERATE_LILO_DOT_CONF + MdlConfLilo.GATHER_OTHER_LINUX_KERNELS_AND_INITRDS() + MdlConfLilo.WRITE_LILO_DOT_CONF() + MdlConfLilo.EXECUTE_LILO() + + + 'frmNext = FrmLiloOsList END SELECT Modified: branches/iVL/FrmLilo.class ============================================================================== --- branches/iVL/FrmLilo.class (original) +++ branches/iVL/FrmLilo.class Tue Aug 19 14:28:29 2008 @@ -21,11 +21,11 @@ PUBLIC SUB Form_Open() -ClsPartSel.sRoot = "/dev/hda1" -' FMain.FrmCurr = ME -' FMain.tvPlan["Conf0"].Selected = TRUE -' FMain.tvPlan["Conf0"].Picture = MdlCore.sNowPic -' FMain.tvPlan["Inst2"].Picture = MdlCore.sDonePic +'ClsPartSel.sRoot = "/dev/sdb1" ' + FMain.FrmCurr = ME + FMain.tvPlan["Conf0"].Selected = TRUE + FMain.tvPlan["Conf0"].Picture = MdlCore.sNowPic + FMain.tvPlan["Inst2"].Picture = MdlCore.sDonePic ME.sVidMode = "Standard" MdlConfLilo.DISPLAY_LILO_TARGET_OPTIONS() MdlLiloOsList.LIST_LILO_OS_CHOICES() @@ -92,17 +92,9 @@ .tlTimoutSec.Move(.sbTimer.Left + .sbTimer.Width + 4, .sbTimer.top, MdlObjSizer.get_object_width(.tlTimoutSec.text)) .tlDefBoot.Move(.tlFbMode.Left, .sbTimer.top, MdlObjSizer.get_object_width(.tlDefBoot.text), 27) .cbDefBoot.Move(.tlDefBoot.Left + .tlDefBoot.Width + 4, .tlDefBoot.top, .tlBanner.Width - .cbDefBoot.Left * 1.3) - '.tlFbMode.Move(.tlBanner.Left, .tlTarGet.top + .tlTarGet.Height + 8, MdlObjSizer.get_object_width(.tlFbMode.Text) + 8) - '.FBResolution.Move(.tlFbMode.Left + .tlFbMode.Width + 2, .tlFbMode.top, (.tlBanner.Width / 2) - (.tlFbMode.Width + .tlFbMode.Left)) - '.tlDefaultBoot.Move(.tlFbMode.left, .tlFbMode.top + .tlFbMode.Height + 4, MdlObjSizer.get_object_width(.tlDefaultBoot.text) + 8) - '.cbDefaultOS.Move(.tlDefaultBoot.Left + .tlDefaultBoot.Width + 2, .tlDefaultBoot.top, .tlBanner.Width - (.tlDefaultBoot.width + .tldefaultboot.left)) - - '.tlTimeOUt.Move(.tlDefaultBoot.left, .tlDefaultBoot.top + .tlDefaultBoot.Height + 4, MdlObjSizer.get_object_width(.tlTimeOUt.text) + 8) - '.sbTimer.Move(.tlTimeOUt.left + .tlTimeOUt.Width + 2, .tlTimeOUt.top, 60) - '.tlTimoutSec.Move(.sbTimer.left + .sbTimer.Width + 4, .sbTimer.top, MdlObjSizer.get_object_width(.tlTimoutSec.text) + 8) .tlList.Move(.tlTimeOUt.left, .tlTimeOUt.top + .tlTimeOUt.Height + 8, .tlBanner.Width) - '.tlList.Move(.tlFbMode.Left, .tlFbMode.top + .tlFbMode.Height + 12, .tlBanner.Width) + .TabStrip1.Move(.tlList.Left, .tlList.top + .tlList.Height + 8, .ClientWidth - (.TabStrip1.left * 2), .ClientHeight - (.tlBanner.Height * 6)) END WITH @@ -140,17 +132,13 @@ END -PUBLIC SUB tlBanner_MouseDown() - - -END PUBLIC SUB Form_Menu() - MdlConfLilo.GENERATE_LILO_DOT_CONF() - MdlConfLilo.GATHER_OTHER_LINUX_KERNELS_AND_INITRDS() + 'MdlConfLilo.GENERATE_LILO_DOT_CONF() +' MdlConfLilo.GATHER_OTHER_LINUX_KERNELS_AND_INITRDS() 'MdlConfLilo.WRITE_LILO_DOT_CONF() END Modified: branches/iVL/FrmLilo.form ============================================================================== --- branches/iVL/FrmLilo.form (original) +++ branches/iVL/FrmLilo.form Tue Aug 19 14:28:29 2008 @@ -4,7 +4,7 @@ MoveScaled(0,0,70,69) Text = ("") { tlBanner TextLabel - MoveScaled(1,1,58,4.5) + MoveScaled(1,1,58,4.4286) Text = ("Configure and install lilo (Linux Boot Loader)") } { YNLiloBox CheckBox @@ -28,21 +28,23 @@ List = [] } { tlTarGet TextLabel - MoveScaled(1,9,10,3.125) + MoveScaled(1,9,10,3) Text = ("Target") + Alignment = Align.Normal } { tlFbMode TextLabel - MoveScaled(33,9,18,3.125) + MoveScaled(33,9,18,3) Text = ("Video Resolution") + Alignment = Align.Normal } { FBResolution ComboBox - MoveScaled(52,9,21,3.125) + MoveScaled(52,9,21,3) Text = ("") ReadOnly = True List = [("Standard"), ("Bootsplash Med"), ("Bootsplash High"), ("Bootsplash Extra high")] } { tlTimeOUt TextLabel - MoveScaled(1,14,18,3.125) + MoveScaled(1,14,18,3) Text = ("Prompt Timeout") Alignment = Align.Normal } @@ -51,17 +53,17 @@ Value = 3 } { tlTimoutSec TextLabel - MoveScaled(30,14,7,3.125) + MoveScaled(30,14,7,3) Text = ("Seconds") Alignment = Align.Normal } { tlDefBoot TextLabel - MoveScaled(33,14,18,3.125) + MoveScaled(33,14,18,3) Text = ("Boot Default") Alignment = Align.Normal } { cbDefBoot ComboBox - MoveScaled(52,13,21,3.125) + MoveScaled(52,13,21,3) Text = ("") ReadOnly = True List = [] Modified: branches/iVL/MdlConfLilo.module ============================================================================== --- branches/iVL/MdlConfLilo.module (original) +++ branches/iVL/MdlConfLilo.module Tue Aug 19 14:28:29 2008 @@ -68,7 +68,12 @@ 'message(sOut) ' Now we want to write the actual file to the root partition + IF Exist(ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.conf") THEN + TRY MOVE ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.conf" TO ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.dist" + END IF + File.Save(ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.conf", sOut) + IF ERROR THEN Message.Error(Error.Text & gb.NewLine & Error.Where) ' to make sure the new changes are written to the MBR, we need a copy in the local running install 'File.Save("/etc/lilo.conf", sOut) ' now run lilo @@ -85,6 +90,8 @@ SHELL "chroot " & ClsGlobal.sTargetMnt & "; /sbin/lilo || echo \'FAILED\'" TO sDump IF InStr(sDump, "FAILED") > 0 THEN Message.Error("Lilo returned an error. Please see below" & gb.NewLine & sDump) + ELSE + Message("Boot loader has been setup successfully") END IF Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Tue Aug 19 14:28:29 2008 @@ -25,10 +25,12 @@ DIM iHandle AS Integer DIM i AS Integer = 0 DIM sDump AS String - DIM sWins AS String = "GParted,/dev/sda - GParted,/dev/hda - GParted" + DIM sWins AS String = "gpartedbin,Gpartedbin" '" GParted, / dev / sda - GParted, / dev / hda - GParted "" DIM sWons AS String[] = Split(sWins, ",") 'Desktop.Find("", "GParted") + ' The window can be found on the Desktop WM_CLASS property which can be seen via the xprop application + ' We may need to implement this method here instead of the win window title method. IF Exist("/usr/sbin/gparted") = FALSE THEN Message.Error("Gparted was not found on this system. Please install gparted and try again") @@ -40,12 +42,12 @@ WAIT i = 0 - aHandle = Desktop.Find(Trim(sWons[i])) + aHandle = Desktop.Find("", Trim(sWons[i])) IF aHandle.Count = 0 THEN REPEAT WAIT 2 INC i - aHandle = Desktop.Find(sWons[i]) + aHandle = Desktop.Find("", sWons[i]) UNTIL aHandle.Count > 0 OR i = sWons.count - 1 END IF Modified: branches/iVL/MdlLiloOsList.module ============================================================================== --- branches/iVL/MdlLiloOsList.module (original) +++ branches/iVL/MdlLiloOsList.module Tue Aug 19 14:28:29 2008 @@ -347,7 +347,7 @@ ' Add an option to boot the recently installed OS to CLI mode - ClsPartSel.sRoot = "/dev/hda1" ' for testing only + 'ClsPartSel.sRoot = "/dev/sdb" ' for testing only IF sLiloDesc LIKE "Vector" THEN IF arrLinux[i] = ClsPartSel.sRoot THEN cbInclude = NEW CheckBox(FrmLilo.TabStrip1) AS "VlCliOption" @@ -422,8 +422,24 @@ PUBLIC SUB VlCliOption_click() - + DIM tb AS TextBox bVlCliOption = LAST.value + + FOR EACH tb IN ME.txtNames + IF tb.tag = LAST.tag THEN + IF bVlCliOption = TRUE THEN + IF FrmLilo.cbDefBoot.Find(tb.text & "-tui") = -1 THEN + FrmLilo.cbDefBoot.Add(tb.text & "-tui") + END IF + ELSE + IF FrmLilo.cbDefBoot.Find(tb.text & "-tui") <> -1 THEN + FrmLilo.cbDefBoot.Remove(FrmLilo.cbDefBoot.Find(tb.text & "-tui")) + END IF + END IF + END IF + NEXT + + 'PRINT bVlCliOption END |
From: <cod...@go...> - 2008-08-19 17:13:10
|
Author: M0E.lnx Date: Tue Aug 19 10:12:49 2008 New Revision: 129 Modified: branches/iVL/.lang/#project.pot branches/iVL/.lang/ClsGlobal.pot branches/iVL/.lang/ClsPartSel.pot branches/iVL/.lang/ClsWinDrives.pot branches/iVL/.lang/FMain.pot branches/iVL/.lang/FrmDiskPart.pot branches/iVL/.lang/FrmLicense.pot branches/iVL/.lang/FrmPartScheme.pot branches/iVL/.lang/FrmPartSel.pot branches/iVL/.lang/FrmPkgSel.pot branches/iVL/.lang/FrmSelISO.pot branches/iVL/.lang/FrmSummary.pot branches/iVL/.lang/FrmWinDrives.pot branches/iVL/.lang/MdlCore.pot branches/iVL/.lang/MdlDiskPart.pot branches/iVL/.lang/MdlObjSizer.pot branches/iVL/.lang/MdlPartSel.pot branches/iVL/.lang/MdlPkgSel.pot branches/iVL/.lang/MdlSetup.pot branches/iVL/.lang/MdlSummarize.pot branches/iVL/.lang/MdlWinDrives.pot branches/iVL/.project branches/iVL/MdlConfLilo.module branches/iVL/MdlLiloOsList.module Log: Modified: branches/iVL/.lang/#project.pot ============================================================================== --- branches/iVL/.lang/#project.pot (original) +++ branches/iVL/.lang/#project.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/.project +# /home/moe/area-51/projects/installer/.project # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsGlobal.pot ============================================================================== --- branches/iVL/.lang/ClsGlobal.pot (original) +++ branches/iVL/.lang/ClsGlobal.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/ClsGlobal.class +# /home/moe/area-51/projects/installer/ClsGlobal.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsPartSel.pot ============================================================================== --- branches/iVL/.lang/ClsPartSel.pot (original) +++ branches/iVL/.lang/ClsPartSel.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/ClsPartSel.class +# /home/moe/area-51/projects/installer/ClsPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/ClsWinDrives.pot ============================================================================== --- branches/iVL/.lang/ClsWinDrives.pot (original) +++ branches/iVL/.lang/ClsWinDrives.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/ClsWinDrives.class +# /home/moe/area-51/projects/installer/ClsWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FMain.pot ============================================================================== --- branches/iVL/.lang/FMain.pot (original) +++ branches/iVL/.lang/FMain.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/FMain.class +# /home/moe/area-51/projects/installer/FMain.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmDiskPart.pot ============================================================================== --- branches/iVL/.lang/FrmDiskPart.pot (original) +++ branches/iVL/.lang/FrmDiskPart.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/FrmDiskPart.class +# /home/moe/area-51/projects/installer/FrmDiskPart.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmLicense.pot ============================================================================== --- branches/iVL/.lang/FrmLicense.pot (original) +++ branches/iVL/.lang/FrmLicense.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/FrmLicense.class +# /home/moe/area-51/projects/installer/FrmLicense.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPartScheme.pot ============================================================================== --- branches/iVL/.lang/FrmPartScheme.pot (original) +++ branches/iVL/.lang/FrmPartScheme.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/FrmPartScheme.class +# /home/moe/area-51/projects/installer/FrmPartScheme.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPartSel.pot ============================================================================== --- branches/iVL/.lang/FrmPartSel.pot (original) +++ branches/iVL/.lang/FrmPartSel.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/FrmPartSel.class +# /home/moe/area-51/projects/installer/FrmPartSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmPkgSel.pot ============================================================================== --- branches/iVL/.lang/FrmPkgSel.pot (original) +++ branches/iVL/.lang/FrmPkgSel.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/FrmPkgSel.class +# /home/moe/area-51/projects/installer/FrmPkgSel.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmSelISO.pot ============================================================================== --- branches/iVL/.lang/FrmSelISO.pot (original) +++ branches/iVL/.lang/FrmSelISO.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/FrmSelISO.class +# /home/moe/area-51/projects/installer/FrmSelISO.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmSummary.pot ============================================================================== --- branches/iVL/.lang/FrmSummary.pot (original) +++ branches/iVL/.lang/FrmSummary.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/FrmSummary.class +# /home/moe/area-51/projects/installer/FrmSummary.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/FrmWinDrives.pot ============================================================================== --- branches/iVL/.lang/FrmWinDrives.pot (original) +++ branches/iVL/.lang/FrmWinDrives.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/FrmWinDrives.class +# /home/moe/area-51/projects/installer/FrmWinDrives.class # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlCore.pot ============================================================================== --- branches/iVL/.lang/MdlCore.pot (original) +++ branches/iVL/.lang/MdlCore.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/MdlCore.module +# /home/moe/area-51/projects/installer/MdlCore.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlDiskPart.pot ============================================================================== --- branches/iVL/.lang/MdlDiskPart.pot (original) +++ branches/iVL/.lang/MdlDiskPart.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/MdlDiskPart.module +# /home/moe/area-51/projects/installer/MdlDiskPart.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlObjSizer.pot ============================================================================== --- branches/iVL/.lang/MdlObjSizer.pot (original) +++ branches/iVL/.lang/MdlObjSizer.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/MdlObjSizer.module +# /home/moe/area-51/projects/installer/MdlObjSizer.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPartSel.pot ============================================================================== --- branches/iVL/.lang/MdlPartSel.pot (original) +++ branches/iVL/.lang/MdlPartSel.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/MdlPartSel.module +# /home/moe/area-51/projects/installer/MdlPartSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlPkgSel.pot ============================================================================== --- branches/iVL/.lang/MdlPkgSel.pot (original) +++ branches/iVL/.lang/MdlPkgSel.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/MdlPkgSel.module +# /home/moe/area-51/projects/installer/MdlPkgSel.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSetup.pot ============================================================================== --- branches/iVL/.lang/MdlSetup.pot (original) +++ branches/iVL/.lang/MdlSetup.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/MdlSetup.module +# /home/moe/area-51/projects/installer/MdlSetup.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlSummarize.pot ============================================================================== --- branches/iVL/.lang/MdlSummarize.pot (original) +++ branches/iVL/.lang/MdlSummarize.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/MdlSummarize.module +# /home/moe/area-51/projects/installer/MdlSummarize.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.lang/MdlWinDrives.pot ============================================================================== --- branches/iVL/.lang/MdlWinDrives.pot (original) +++ branches/iVL/.lang/MdlWinDrives.pot Tue Aug 19 10:12:49 2008 @@ -1,4 +1,4 @@ -# /home/moises/area-51/projects/installer/MdlWinDrives.module +# /home/moe/area-51/projects/installer/MdlWinDrives.module # Generated by Gambas compiler # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. Modified: branches/iVL/.project ============================================================================== --- branches/iVL/.project (original) +++ branches/iVL/.project Tue Aug 19 10:12:49 2008 @@ -1,6 +1,6 @@ # Gambas Project File 2.0 Title=VectorLinux Installer -Startup=MdlCore +Startup=FrmLilo Version=0.0.33 Library=gb.gtk Library=gb.form @@ -16,7 +16,7 @@ Language=en_US ControlPublic=1 ModulePublic=1 -Maintainer=benoit -Vendor=Princeton -Address=benoit@localhost +Maintainer=M0E-lnx +Vendor=VectorLinux +Address=M0...@gm... License=General Public Licence Modified: branches/iVL/MdlConfLilo.module ============================================================================== --- branches/iVL/MdlConfLilo.module (original) +++ branches/iVL/MdlConfLilo.module Tue Aug 19 10:12:49 2008 @@ -32,6 +32,11 @@ sTrgt = Trim(FrmLilo.LiloTarget.text) IF InStr(sTrgt, "MBR of") THEN sTrgt = Right(sTrgt, Len(sTrgt) - InStr(sTrgt, "/") + 1) + ELSE IF FrmLilo.LiloTarget.text = "Sector" THEN + sTrgt = ClsPartSel.sRoot + ELSE IF FrmLilo.LiloTarget.text = "Floppy" THEN + sTrgt = "/dev/fd0" + END IF iTimeout = FrmLilo.sbTimer.Value * 100 @@ -65,20 +70,23 @@ ' Now we want to write the actual file to the root partition File.Save(ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.conf", sOut) ' to make sure the new changes are written to the MBR, we need a copy in the local running install - File.Save("/etc/lilo.conf", sOut) + 'File.Save("/etc/lilo.conf", sOut) ' now run lilo - SHELL "lilo || echo \'FAILED\'" TO sDump - IF InStr(sDump, "FAILED") > 0 THEN - Message.Error("Error while writing lilo configuration. Please boot the system using the <br>install disk" & - "And try using \'vliloconf\' once the system is running") - END IF - - - - +END + +PUBLIC SUB EXECUTE_LILO() + DIM sDump AS String + + SHELL "mount -o bind /dev " & ClsGlobal.sTargetMnt &/ "dev" WAIT + SHELL "mount -o bind /proc " & ClsGlobal.sTargetMnt &/ "proc" WAIT + SHELL "chroot " & ClsGlobal.sTargetMnt & "; /sbin/lilo || echo \'FAILED\'" TO sDump + IF InStr(sDump, "FAILED") > 0 THEN + Message.Error("Lilo returned an error. Please see below" & gb.NewLine & sDump) + END IF + END Modified: branches/iVL/MdlLiloOsList.module ============================================================================== --- branches/iVL/MdlLiloOsList.module (original) +++ branches/iVL/MdlLiloOsList.module Tue Aug 19 10:12:49 2008 @@ -240,8 +240,12 @@ 'create a temporary monunt dir TRY MKDIR "/tmp/lilo_tmp" FOR i = 0 TO arrLinux.Count - 1 + IF arrLinux[i] <> "" THEN sShortAddr = Right(arrLinux[i], Len(arrLinux[i]) - RInStr(arrLinux[i], "/")) + PRINT "scanning " & arrLinux[i] + PRINT "mount " & arrLinux[i] & Space(1) & "/tmp/lilo_tmp" SHELL "mount " & arrLinux[i] & Space(1) & "/tmp/lilo_tmp" WAIT + ' now check for a vmlinuz IF Exist("/tmp/lilo_tmp/boot/vmlinuz") = TRUE THEN FrmLilo.TabStrip1.Count = FrmLilo.TabStrip1.count + 1 'arrLinux.Count - 1 @@ -368,6 +372,7 @@ END IF SHELL "umount /tmp/lilo_tmp" WAIT + END IF NEXT FOR i = 0 TO FrmLilo.TabStrip1.Count - 1 @@ -377,6 +382,7 @@ FrmLilo.TabStrip1[i].Visible = FALSE END IF END WITH + NEXT |
From: <cod...@go...> - 2008-08-18 20:02:32
|
Author: M0...@gm... Date: Mon Aug 18 13:01:30 2008 New Revision: 128 Modified: branches/iVL/.lang/FMain.pot branches/iVL/.project branches/iVL/FMain.class branches/iVL/FrmInstallSys.class branches/iVL/FrmInstallSys.form branches/iVL/FrmLilo.class branches/iVL/MdlConfLilo.module branches/iVL/MdlDiskPart.module branches/iVL/MdlPartFrmt.module branches/iVL/MdlSetup.module Log: small changes... almost ready to write lilo.conf Modified: branches/iVL/.lang/FMain.pot ============================================================================== --- branches/iVL/.lang/FMain.pot (original) +++ branches/iVL/.lang/FMain.pot Mon Aug 18 13:01:30 2008 @@ -14,19 +14,19 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: FMain.class:273 +#: FMain.class:274 msgid "Process Overview" msgstr "" -#: FMain.class:292 +#: FMain.class:293 msgid "Next" msgstr "" -#: FMain.class:298 +#: FMain.class:299 msgid "Back" msgstr "" -#: FMain.class:304 +#: FMain.class:305 msgid "Exit" msgstr "" Modified: branches/iVL/.project ============================================================================== --- branches/iVL/.project (original) +++ branches/iVL/.project Mon Aug 18 13:01:30 2008 @@ -1,6 +1,6 @@ # Gambas Project File 2.0 Title=VectorLinux Installer -Startup=FrmLilo +Startup=MdlCore Version=0.0.33 Library=gb.gtk Library=gb.form Modified: branches/iVL/FMain.class ============================================================================== --- branches/iVL/FMain.class (original) +++ branches/iVL/FMain.class Mon Aug 18 13:01:30 2008 @@ -209,6 +209,7 @@ 'POST INSTALL CONFIGURATION CASE "FrmInstallSys" + frmNext = FrmLilo CASE "FrmLilo" Modified: branches/iVL/FrmInstallSys.class ============================================================================== --- branches/iVL/FrmInstallSys.class (original) +++ branches/iVL/FrmInstallSys.class Mon Aug 18 13:01:30 2008 @@ -26,30 +26,30 @@ FMain.tvPlan["Inst2"].Picture = MdlCore.sNowPic FMain.tvPlan["Inst2"].Selected = TRUE + + + + - MdlPartFrmt.PREPARE_ALL_PARTITIONS() ' formats partitions and mounts them + 'MdlPartFrmt.PREPARE_ALL_PARTITIONS() ' formats partitions and mounts them END PUBLIC SUB Form_Open() - - ' prepare the system - 'ME.HIDE_PROGRES_CONTROLS() - ME.tmCredits.Enabled = TRUE -MdlSetup.RUN_CREDITS(ClsGlobal.sSourceMnt &/ "CREDIT", ME.tlCredits) -WAIT 3 +FMain.FrmCurr = ME + ClsGlobal.sSourceMnt = "/mnt/cdrom" 'ME.FrmProg.Text = " Preparing system for installation " ME.tlCurrStepLbl.Text = "Current Step" + 'ME.show_credits + 'MdlSetup.RUN_CREDITS(ClsGlobal.sSourceMnt &/ "CREDIT", ME.tlCredits) + 'ME.tmCredits.Enabled = TRUE 'STOP EVENT -ME.BEGIN_PROCESS() ' COMMENTED FOR TESTING PURPOSES -'MdlSetup.RUN_CREDITS("/mnt/loop/CREDIT", ME.tlCredits) - - +'ME.BEGIN_PROCESS() ' COMMENTED FOR TESTING PURPOSES @@ -111,9 +111,11 @@ + + DIM X AS Integer X = ME.sclCredits.ScrollX - + INC ME.sclCredits.ScrollX IF X = ME.sclCredits.Scrollx THEN ME.sclCredits.scrollx = 0 @@ -137,6 +139,14 @@ PUBLIC SUB tlCredits_MouseDown() + + +END + +PUBLIC SUB Form_Menu() + ClsGlobal.sSourceMnt = "/mnt/cdrom" + MdlSetup.RUN_CREDITS(ClsGlobal.sSourceMnt &/ "CREDIT", ME.tlCredits) + ME.tmCredits.Enabled = TRUE END Modified: branches/iVL/FrmInstallSys.form ============================================================================== --- branches/iVL/FrmInstallSys.form (original) +++ branches/iVL/FrmInstallSys.form Mon Aug 18 13:01:30 2008 @@ -31,22 +31,23 @@ } } { frmCredits Frame - MoveScaled(2,47,81,8) - Text = ("VectorLinux ... Brought to you by ") + MoveScaled(12,45,38,12) + Font = Font["-1"] + Text = ("") { sclCredits ScrollView - MoveScaled(1,1,58,5) + MoveScaled(2,1,34,8) Border = False ScrollBar = Scroll.None { tlCredits TextLabel - MoveScaled(0,0,53,4) + MoveScaled(2,1,30,5) Text = ("") Alignment = Align.Normal } } } { tmCredits #Timer - #X = 480 - #Y = 120 + #X = 632 + #Y = 80 Delay = 30 } } Modified: branches/iVL/FrmLilo.class ============================================================================== --- branches/iVL/FrmLilo.class (original) +++ branches/iVL/FrmLilo.class Mon Aug 18 13:01:30 2008 @@ -148,7 +148,7 @@ PUBLIC SUB Form_Menu() - 'MdlConfLilo.WRITE_LILO_DOT_CONF\ + MdlConfLilo.GENERATE_LILO_DOT_CONF() MdlConfLilo.GATHER_OTHER_LINUX_KERNELS_AND_INITRDS() 'MdlConfLilo.WRITE_LILO_DOT_CONF() Modified: branches/iVL/MdlConfLilo.module ============================================================================== --- branches/iVL/MdlConfLilo.module (original) +++ branches/iVL/MdlConfLilo.module Mon Aug 18 13:01:30 2008 @@ -27,6 +27,7 @@ DIM iTimeout AS Integer DIM sTrgt AS String DIM sFB AS String + DIM sDump AS String sTrgt = Trim(FrmLilo.LiloTarget.text) IF InStr(sTrgt, "MBR of") THEN @@ -60,7 +61,19 @@ - Message(sOut) + 'message(sOut) + ' Now we want to write the actual file to the root partition + File.Save(ClsGlobal.sTargetMnt &/ "etc" &/ "lilo.conf", sOut) + ' to make sure the new changes are written to the MBR, we need a copy in the local running install + File.Save("/etc/lilo.conf", sOut) + ' now run lilo + SHELL "lilo || echo \'FAILED\'" TO sDump + IF InStr(sDump, "FAILED") > 0 THEN + Message.Error("Error while writing lilo configuration. Please boot the system using the <br>install disk" & + "And try using \'vliloconf\' once the system is running") + END IF + + @@ -125,22 +138,24 @@ SHELL "mount " & cb.tag & Space(1) & "/mnt" &/ sShortAddr WAIT SHELL "ls /mnt" &/ sShortAddr &/ "boot" TO sDump 'message(sDump) - IF Exist("/mnt/ " & sShortAddr &/ "boot" &/ sInitrd0) THEN + + IF Exist("/mnt/" & sShortAddr &/ "boot" &/ sInitrd0) THEN + PRINT "cp /mnt" &/ sShortAddr &/ "boot" &/ sInitrd0 & " to " & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text - 'SHELL "cp /mnt" &/ sShortAddr &/ sInitrd0 & Space(1) & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text + SHELL "cp /mnt" &/ sShortAddr &/ sInitrd0 & Space(1) & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text ELSE IF Exist("/mnt" &/ sShortAddr &/ "boot" &/ sInitrd1) THEN PRINT "cp /mnt" &/ sShortAddr &/ "boot" &/ sInitrd1 & " to " & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text - 'SHELL "cp /mnt" &/ sShortAddr &/ sInitrd1 & Space(1) & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text + SHELL "cp /mnt" &/ sShortAddr &/ sInitrd1 & Space(1) & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ tb.text ELSE PRINT "No initrd found" END IF ' now copy the kernel to the same location IF Exist("/mnt" &/ sShortAddr &/ "boot" &/ "vmlinuz") THEN PRINT "Copy /mnt" &/ sShortAddr &/ "boot" &/ "vmlinuz" & " to " & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ "vmlinuz-" & sShortaddr - 'SHELL "cp -L /mnt" &/ sShortAddr &/ "boot" &/ "vmlinuz" & Space(1) & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ "vmlinuz-" & sShortAddr WAIT + SHELL "cp -L /mnt" &/ sShortAddr &/ "boot" &/ "vmlinuz" & Space(1) & ClsGlobal.sTargetMnt &/ "boot" &/ "tamu" &/ "vmlinuz-" & sShortAddr WAIT END IF - 'SHELL "umount /mnt" &/ sShortAddr WAIT + SHELL "umount /mnt" &/ sShortAddr WAIT END IF NEXT END IF Modified: branches/iVL/MdlDiskPart.module ============================================================================== --- branches/iVL/MdlDiskPart.module (original) +++ branches/iVL/MdlDiskPart.module Mon Aug 18 13:01:30 2008 @@ -40,10 +40,10 @@ WAIT i = 0 - aHandle = Desktop.Find(sWons[i]) + aHandle = Desktop.Find(Trim(sWons[i])) IF aHandle.Count = 0 THEN REPEAT - WAIT 3 + WAIT 2 INC i aHandle = Desktop.Find(sWons[i]) UNTIL Modified: branches/iVL/MdlPartFrmt.module ============================================================================== --- branches/iVL/MdlPartFrmt.module (original) +++ branches/iVL/MdlPartFrmt.module Mon Aug 18 13:01:30 2008 @@ -39,7 +39,8 @@ MdlCore.LOCK_GUI() MdlInstallSys.MOUNT_DEFINED_PARTITIONS() ' let the game begin - + ' begin running the credits + ' ' ' END IF 'MdlInstallSys.MOUNT_DEFINED_PARTITIONS Modified: branches/iVL/MdlSetup.module ============================================================================== --- branches/iVL/MdlSetup.module (original) +++ branches/iVL/MdlSetup.module Mon Aug 18 13:01:30 2008 @@ -220,13 +220,16 @@ ELSE sFile[i] = sFile[i] END IF + 'tlOutput.text = tlOutput.text & "<br>" & sFile[i] + 'tlOutput.Adjust tlOutput.Text = tlOutput.Text & Space(12) & " *** " & sFile[i] ' tlOutput.Text = sFile[i] 'WAIT 20 NEXT tlOutput.Width = MdlObjSizer.get_object_width(tlOutput.Text) + 24 'tlOutput.Border = Border.Plain - + 'FrmInstallSys.tmCredits.Enabled = TRUE + 'FrmInstallSys.tmCredits.Start END |