Changeset 93572be


Ignore:
Timestamp:
08/22/13 08:58:18 (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
5cc3d00
Parents:
bec1293
Message:

Welcome the new Life-Preserver restore ability to the Installer GUI

Now you can restore your entire system from a replicated life-preserver backup on a
remote machine

Files:
6 added
10 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r84878ce r93572be  
    685685src-qt4/warden-gui/i18n/Warden_zh_TW.qm 
    686686src-qt4/warden-gui/i18n/Warden_zu.qm 
     687src-qt4/pc-installgui/i18n/SysInstaller_af.qm 
     688src-qt4/pc-installgui/i18n/SysInstaller_ar.qm 
     689src-qt4/pc-installgui/i18n/SysInstaller_az.qm 
     690src-qt4/pc-installgui/i18n/SysInstaller_bg.qm 
     691src-qt4/pc-installgui/i18n/SysInstaller_bn.qm 
     692src-qt4/pc-installgui/i18n/SysInstaller_bs.qm 
     693src-qt4/pc-installgui/i18n/SysInstaller_ca.qm 
     694src-qt4/pc-installgui/i18n/SysInstaller_cs.qm 
     695src-qt4/pc-installgui/i18n/SysInstaller_cy.qm 
     696src-qt4/pc-installgui/i18n/SysInstaller_da.qm 
     697src-qt4/pc-installgui/i18n/SysInstaller_de.qm 
     698src-qt4/pc-installgui/i18n/SysInstaller_el.qm 
     699src-qt4/pc-installgui/i18n/SysInstaller_en.qm 
     700src-qt4/pc-installgui/i18n/SysInstaller_en_GB.qm 
     701src-qt4/pc-installgui/i18n/SysInstaller_en_US.qm 
     702src-qt4/pc-installgui/i18n/SysInstaller_en_ZA.qm 
     703src-qt4/pc-installgui/i18n/SysInstaller_es.qm 
     704src-qt4/pc-installgui/i18n/SysInstaller_et.qm 
     705src-qt4/pc-installgui/i18n/SysInstaller_eu.qm 
     706src-qt4/pc-installgui/i18n/SysInstaller_fa.qm 
     707src-qt4/pc-installgui/i18n/SysInstaller_fi.qm 
     708src-qt4/pc-installgui/i18n/SysInstaller_fr.qm 
     709src-qt4/pc-installgui/i18n/SysInstaller_fr_CA.qm 
     710src-qt4/pc-installgui/i18n/SysInstaller_fur.qm 
     711src-qt4/pc-installgui/i18n/SysInstaller_gl.qm 
     712src-qt4/pc-installgui/i18n/SysInstaller_he.qm 
     713src-qt4/pc-installgui/i18n/SysInstaller_hi.qm 
     714src-qt4/pc-installgui/i18n/SysInstaller_hr.qm 
     715src-qt4/pc-installgui/i18n/SysInstaller_hu.qm 
     716src-qt4/pc-installgui/i18n/SysInstaller_id.qm 
     717src-qt4/pc-installgui/i18n/SysInstaller_is.qm 
     718src-qt4/pc-installgui/i18n/SysInstaller_it.qm 
     719src-qt4/pc-installgui/i18n/SysInstaller_ja.qm 
     720src-qt4/pc-installgui/i18n/SysInstaller_ka.qm 
     721src-qt4/pc-installgui/i18n/SysInstaller_ko.qm 
     722src-qt4/pc-installgui/i18n/SysInstaller_lt.qm 
     723src-qt4/pc-installgui/i18n/SysInstaller_lv.qm 
     724src-qt4/pc-installgui/i18n/SysInstaller_mk.qm 
     725src-qt4/pc-installgui/i18n/SysInstaller_mn.qm 
     726src-qt4/pc-installgui/i18n/SysInstaller_ms.qm 
     727src-qt4/pc-installgui/i18n/SysInstaller_mt.qm 
     728src-qt4/pc-installgui/i18n/SysInstaller_nb.qm 
     729src-qt4/pc-installgui/i18n/SysInstaller_ne.qm 
     730src-qt4/pc-installgui/i18n/SysInstaller_nl.qm 
     731src-qt4/pc-installgui/i18n/SysInstaller_pa.qm 
     732src-qt4/pc-installgui/i18n/SysInstaller_pl.qm 
     733src-qt4/pc-installgui/i18n/SysInstaller_pt.qm 
     734src-qt4/pc-installgui/i18n/SysInstaller_pt_BR.qm 
     735src-qt4/pc-installgui/i18n/SysInstaller_ro.qm 
     736src-qt4/pc-installgui/i18n/SysInstaller_ru.qm 
     737src-qt4/pc-installgui/i18n/SysInstaller_sa.qm 
     738src-qt4/pc-installgui/i18n/SysInstaller_sk.qm 
     739src-qt4/pc-installgui/i18n/SysInstaller_sl.qm 
     740src-qt4/pc-installgui/i18n/SysInstaller_sr.qm 
     741src-qt4/pc-installgui/i18n/SysInstaller_sv.qm 
     742src-qt4/pc-installgui/i18n/SysInstaller_sw.qm 
     743src-qt4/pc-installgui/i18n/SysInstaller_ta.qm 
     744src-qt4/pc-installgui/i18n/SysInstaller_tg.qm 
     745src-qt4/pc-installgui/i18n/SysInstaller_th.qm 
     746src-qt4/pc-installgui/i18n/SysInstaller_tr.qm 
     747src-qt4/pc-installgui/i18n/SysInstaller_uk.qm 
     748src-qt4/pc-installgui/i18n/SysInstaller_uz.qm 
     749src-qt4/pc-installgui/i18n/SysInstaller_vi.qm 
     750src-qt4/pc-installgui/i18n/SysInstaller_zh_CN.qm 
     751src-qt4/pc-installgui/i18n/SysInstaller_zh_HK.qm 
     752src-qt4/pc-installgui/i18n/SysInstaller_zh_TW.qm 
     753src-qt4/pc-installgui/i18n/SysInstaller_zu.qm 
     754src-qt4/pc-installgui/ui_wizardRestore.h 
    687755 
    688756# Compiled binaries 
  • src-qt4/pc-installgui/installer.cpp

    rea4b713 r93572be  
    349349       } 
    350350    } 
     351 
     352 
    351353 
    352354    // If after doing the mirror, our list is empty, break out 
     
    399401              } 
    400402            }  
    401             summaryList << tr("ZFS Datasets:<br>") + " " + zDS.join("<br>"); 
     403            if ( radioRestore->isChecked()) 
     404               summaryList << tr("ZFS Datasets:") + " " + tr("The original ZFS layout will be restored"); 
     405            else 
     406               summaryList << tr("ZFS Datasets:<br>") + " " + zDS.join("<br>"); 
    402407          } else { 
    403408            summaryList << tr("Mount:") + " " + copyList.at(i).at(2); 
     
    454459        summaryList << ""; 
    455460        summaryList << tr("Partition:") + " " + workingDisk + "(" + workingSlice + "):"; 
     461 
    456462        summaryList << tr("FileSystem:") + " " + copyList.at(i).at(3); 
     463 
    457464        summaryList << tr("Size:") + " " + copyList.at(i).at(4) + "MB "; 
    458465        if ( copyList.at(i).at(3) != "ZFS" ) 
     
    481488  wDisk->programInit(); 
    482489  wDisk->setWindowModality(Qt::ApplicationModal); 
     490  if ( radioRestore->isChecked() ) 
     491    wDisk->setRestoreMode(); 
    483492  connect(wDisk, SIGNAL(saved(QList<QStringList>, bool, bool, QString, bool)), this, SLOT(slotSaveDiskChanges(QList<QStringList>, bool, bool, QString, bool))); 
    484493  wDisk->show(); 
     
    537546 
    538547  selectedPkgs.clear(); 
     548  if ( radioRestore->isChecked() ) 
     549  { 
     550     pushDeskCustomize->setEnabled(false); 
     551     textDeskSummary->setText(tr("Performing a restore from a Life-Preserver backup. Click next to start the restore wizard.")); 
     552     return; 
     553  } 
     554 
     555  pushDeskCustomize->setEnabled(true); 
    539556 
    540557  // Set the default desktop meta-pkgs based upon the selection 
     
    594611    connect(radioDesktop,SIGNAL(clicked()), this, SLOT(slotChangedMetaPkgSelection())); 
    595612    connect(radioServer,SIGNAL(clicked()), this, SLOT(slotChangedMetaPkgSelection())); 
     613    connect(radioRestore,SIGNAL(clicked()), this, SLOT(slotChangedMetaPkgSelection())); 
    596614    slotChangedMetaPkgSelection(); 
    597615} 
     
    653671   } 
    654672 
     673   // Start the Restore wizard 
     674   if ( radioRestore->isChecked() && installStackWidget->currentIndex() == 1 ) {  
     675     wRestore = new wizardRestore(); 
     676     wRestore->setWindowModality(Qt::ApplicationModal); 
     677     wRestore->programInit(); 
     678     connect(wRestore, SIGNAL(saved(QStringList)), this, SLOT(slotSaveRestoreSettings(QStringList))); 
     679     wRestore->show(); 
     680     wRestore->raise(); 
     681     return ; 
     682   } 
     683 
    655684   // Start the TrueOS wizard 
    656685   if ( radioServer->isChecked() && installStackWidget->currentIndex() == 1 ) {  
     
    678707   { 
    679708      startConfigGen(); 
     709      QString msg; 
     710 
     711      if (radioRestore->isChecked() ) 
     712        msg=tr("Start the restore now?"); 
     713      else 
     714        msg=tr("Start the installation now?"); 
     715 
    680716      int ret = QMessageBox::question(this, tr("PC-BSD Installer"), 
    681                                 tr("Start the installation now?"), 
     717                                msg, 
    682718                                QMessageBox::No | QMessageBox::Yes, 
    683719                                QMessageBox::No); 
     
    764800  tmpList << "# Auto-Generated pc-sysinstall configuration"; 
    765801  tmpList << "installInteractive=no"; 
     802 
     803  // Are we doing a restore? 
     804  if ( radioRestore->isChecked() ) 
     805  { 
     806    tmpList << "installMode=zfsrestore"; 
     807    tmpList << ""; 
     808    tmpList << "sshHost=" + restOpts.at(0); 
     809    tmpList << "sshUser=" + restOpts.at(1); 
     810    tmpList << "sshPort=" + restOpts.at(2); 
     811    if ( ! restOpts.at(3).isEmpty() ) 
     812      tmpList << "sshKey=" + restOpts.at(3); 
     813    tmpList << "zfsProps=" + restOpts.at(4); 
     814    tmp = restOpts.at(4); 
     815    tmp.replace(".lp-props-", ""); 
     816    tmp.replace("#", "/"); 
     817    tmpList << "zfsRemoteDataset=" + tmp; 
     818 
     819    // Using a custom zpool name? 
     820    if ( ! zpoolName.isEmpty() ) 
     821      tmpList << "zpoolName=" + zpoolName; 
     822 
     823    // Are we force enabling ZFS 4K block sizes? 
     824    if ( force4K ) 
     825      tmpList << "zfsForce4k=YES"; 
     826 
     827    tmpList << ""; 
     828    return tmpList; 
     829  } // End of restore options 
     830 
    766831 
    767832  if ( sysFinalDiskLayout.at(0).at(0) == "MANUAL" ) 
     
    895960 
    896961  cfgList+=getDiskCfgSettings(); 
    897  
    898   cfgList+=getComponentCfgSettings(); 
    899  
    900   // Save the install config script to disk 
    901   cfgList << "runExtCommand=/root/save-config.sh"; 
    902  
    903   cfgList+= ""; 
    904  
    905   // If doing install from package disk 
    906   if ( hasPkgsOnMedia ) 
    907     cfgList+=getDeskPkgCfg(); 
    908  
    909   cfgList+= ""; 
    910  
    911   if ( radioDesktop->isChecked() ) { 
    912     // Doing PC-BSD Install 
    913  
    914     QString lang; 
    915     if ( comboLanguage->currentIndex() != 0 ) 
    916       lang = languages.at(comboLanguage->currentIndex()).section("(",1,1).section(")",0,0); 
    917     else 
    918       lang="en_US"; 
    919  
    920     // Setup the desktop 
    921     cfgList << "runCommand=sh /usr/local/share/pcbsd/scripts/sys-init.sh desktop " + lang; 
    922  
    923     // Setup for a fresh system first boot 
    924     cfgList << "# Touch flags to enable PC-BSD setup at first boot"; 
    925     cfgList << "runCommand=touch /var/.runxsetup"; 
    926     cfgList << "runCommand=touch /var/.pcbsd-firstboot"; 
    927     cfgList << "runCommand=touch /var/.pcbsd-firstgui"; 
    928  
    929   } else { 
    930     // Doing TrueOS Install 
    931     cfgList+=getUsersCfgSettings(); 
    932  
    933     // Enable SSH? 
    934     if ( fSSH ) 
    935       cfgList << "runCommand=echo 'sshd_enable=\"YES\"' >>/etc/rc.conf"; 
    936  
    937     // Setup the TrueOS server 
    938     cfgList << "runCommand=sh /usr/local/share/pcbsd/scripts/sys-init.sh server"; 
    939  
    940   }  
    941  
    942   // Run newaliases to fix mail errors 
    943   cfgList << "runCommand=newaliases"; 
     962  
     963  // We can skip these options if doing a restore 
     964  if ( ! radioRestore->isChecked() ) { 
     965 
     966    cfgList+=getComponentCfgSettings(); 
     967 
     968    // Save the install config script to disk 
     969    cfgList << "runExtCommand=/root/save-config.sh"; 
     970 
     971    cfgList+= ""; 
     972 
     973    // If doing install from package disk 
     974    if ( hasPkgsOnMedia ) 
     975      cfgList+=getDeskPkgCfg(); 
     976 
     977    cfgList+= ""; 
     978 
     979    if ( radioDesktop->isChecked() ) { 
     980      // Doing PC-BSD Install 
     981 
     982      QString lang; 
     983      if ( comboLanguage->currentIndex() != 0 ) 
     984        lang = languages.at(comboLanguage->currentIndex()).section("(",1,1).section(")",0,0); 
     985      else 
     986        lang="en_US"; 
     987 
     988      // Setup the desktop 
     989      cfgList << "runCommand=sh /usr/local/share/pcbsd/scripts/sys-init.sh desktop " + lang; 
     990 
     991      // Setup for a fresh system first boot 
     992      cfgList << "# Touch flags to enable PC-BSD setup at first boot"; 
     993      cfgList << "runCommand=touch /var/.runxsetup"; 
     994      cfgList << "runCommand=touch /var/.pcbsd-firstboot"; 
     995      cfgList << "runCommand=touch /var/.pcbsd-firstgui"; 
     996 
     997    } else { 
     998      // Doing TrueOS Install 
     999      cfgList+=getUsersCfgSettings(); 
     1000 
     1001      // Enable SSH? 
     1002      if ( fSSH ) 
     1003        cfgList << "runCommand=echo 'sshd_enable=\"YES\"' >>/etc/rc.conf"; 
     1004 
     1005      // Setup the TrueOS server 
     1006      cfgList << "runCommand=sh /usr/local/share/pcbsd/scripts/sys-init.sh server"; 
     1007 
     1008    }  
     1009 
     1010    // Run newaliases to fix mail errors 
     1011    cfgList << "runCommand=newaliases"; 
     1012 
     1013  } // End of restore check 
    9441014 
    9451015  // Now write out the cfgList to file 
     
    11511221void Installer::startInstall() 
    11521222{ 
     1223 
     1224  // Update the UI elements if doing a restore 
     1225  if ( radioRestore->isChecked() ) 
     1226  { 
     1227      labelFinished->setText(tr("Your system is now restored!\nClick Finish to reboot. After rebooting you may eject the install media.")); 
     1228      groupInstall->setTitle(tr("System Restore")); 
     1229      labelInstallHeader->setText(tr("Your system is now being restored, this may take a while depending upon the size of your backup and network conditions.")); 
     1230  } 
     1231 
    11531232  QString cfgFile; 
    11541233  if (customCfgFile.isEmpty() ) 
     
    11641243  installFoundMetaCounter = false; 
    11651244  installFoundFetchOutput = false; 
     1245  inZFSSend = false; 
    11661246 
    11671247  // Setup some defaults for the secondary progress bar 
     
    12811361     //qDebug() << tmp; 
    12821362 
    1283      // If doing a restore, don't bother checking for other values 
    1284      //if ( radioRestore->isChecked() ) { 
    1285      //   labelInstallStatus->setText(tmp); 
    1286      // continue; 
    1287      //}  
     1363     // If doing a restore we can do all parsing right here 
     1364     if ( radioRestore->isChecked() ) { 
     1365       line = tmp; 
     1366 
     1367       if ( tmp.contains("total estimated size")) 
     1368       {   
     1369          repTotalK = line.section(" ",-1).simplified(); 
     1370          double totSize = displayToDoubleK(repTotalK); 
     1371          progressBarInstall->setRange(0, totSize + 1024); 
     1372          inZFSSend = true; 
     1373          continue; 
     1374       }  
     1375       if ( tmp.contains("Moving datasets to")) 
     1376          inZFSSend=false; 
     1377 
     1378       if( line.contains("send from ") ) 
     1379         continue; 
     1380       if( line.contains("TIME ") ) 
     1381         continue; 
     1382 
     1383       labelInstallStatus->setText(tmp); 
     1384 
     1385       if ( ! inZFSSend ) 
     1386          continue; 
     1387 
     1388       // We got here, lets parse the ZFS send message 
     1389       parseStatusMessage(tmp); 
     1390 
     1391       continue; 
     1392     } // End of restore parsing 
    12881393 
    12891394     // Parse fetch output 
     
    17101815void Installer::slotStartNetworkManager()  
    17111816{ 
    1712    system("/usr/local/bin/pc-netmanager -installer &"); 
    1713 } 
     1817  system("/usr/local/bin/pc-netmanager -installer &"); 
     1818} 
     1819 
     1820void Installer::slotSaveRestoreSettings(QStringList Opts) 
     1821{ 
     1822  restOpts = Opts; 
     1823 
     1824  textEditDiskSummary->clear(); 
     1825  QStringList summary = getDiskSummary(); 
     1826  for ( int i=0; i < summary.count(); ++i) 
     1827    textEditDiskSummary->append(summary.at(i)); 
     1828                
     1829  textEditDiskSummary->moveCursor(QTextCursor::Start); 
     1830  
     1831  startConfigGen(); 
     1832  installStackWidget->setCurrentIndex(installStackWidget->currentIndex() + 1); 
     1833} 
     1834 
     1835void Installer::parseStatusMessage(QString stat){ 
     1836  //qDebug() << "msg:" << stat; 
     1837  QString dispTotal; 
     1838 
     1839  //Divide up the status message into sections 
     1840  stat.replace("\t"," "); 
     1841  QString cSize = stat.section(" ",1,1,QString::SectionSkipEmpty); 
     1842 
     1843  //Now Setup the tooltip 
     1844  if(!repTotalK.isEmpty()){ 
     1845    double c = displayToDoubleK(cSize); 
     1846    progressBarInstall->setValue(c); 
     1847    dispTotal = repTotalK; 
     1848  } else { 
     1849    dispTotal = "??"; 
     1850  } 
     1851 
     1852  //Format the tooltip String 
     1853  QString status = cSize+"/"+dispTotal; 
     1854 
     1855  QString txt = QString(tr("Restoring system: %1")).arg(status); 
     1856  labelInstallStatus->setText(txt); 
     1857 
     1858} 
     1859 
     1860double Installer::displayToDoubleK(QString displayNumber){ 
     1861  QStringList labels; 
     1862    labels << "K" << "M" << "G" << "T" << "P" << "E"; 
     1863  QString clab = displayNumber.right(1); //last character is the size label 
     1864        displayNumber.chop(1); //remove the label from the number 
     1865  double num = displayNumber.toDouble(); 
     1866  //Now format the number properly 
     1867  bool ok = false; 
     1868  for(int i=0; i<labels.length(); i++){ 
     1869    if(labels[i] == clab){ ok = true; break; } 
     1870    else{ num = num*1024; } //get ready for the next size 
     1871  } 
     1872  if(!ok){ num = -1; } //could not determine the size 
     1873  return num; 
     1874} 
     1875 
  • src-qt4/pc-installgui/installer.h

    rea4b713 r93572be  
    1717#include "wizardFreeBSD.h" 
    1818#include "wizardDisk.h" 
     19#include "wizardRestore.h" 
    1920 
    2021#define wFREEBSD 1 
     
    7374    void slotSaveFBSDSettings(QString, QString, QString, QString, QString, QString, bool, bool, bool, QStringList); 
    7475 
     76    // Restore-related slots 
     77    void slotSaveRestoreSettings(QStringList); 
     78 
    7579 
    7680private: 
     
    7983    void startInstall(); // Function which begins the install process 
    8084    void installFailed(); // Function which does post-install failure stuff 
     85 
     86    // Functions to parse ZFS send/recv messages 
     87    bool inZFSSend; 
     88    double displayToDoubleK(QString); 
     89    void parseStatusMessage(QString); 
     90    QString repTotalK; 
    8191 
    8292    // Disk functions 
     
    147157    // FreeBSD setup wizard 
    148158    wizardFreeBSD *wFBSD; 
     159 
     160    // Restore wizard 
     161    wizardRestore *wRestore; 
    149162     
    150163    // FreeBSD options 
     
    179192    bool force4K; 
    180193 
     194    // Restore Options 
     195    QStringList restOpts; 
     196 
    181197protected: 
    182198    void closeEvent(QCloseEvent *event); 
  • src-qt4/pc-installgui/installer.ui

    rea4b713 r93572be  
    285285      </property> 
    286286      <property name="currentIndex"> 
    287        <number>0</number> 
     287       <number>4</number> 
    288288      </property> 
    289289      <widget class="QWidget" name="page"> 
     
    625625             </property> 
    626626            </spacer> 
     627           </item> 
     628           <item row="2" column="1"> 
     629            <widget class="QRadioButton" name="radioRestore"> 
     630             <property name="text"> 
     631              <string>Restore from Life-Preserver backup</string> 
     632             </property> 
     633             <property name="icon"> 
     634              <iconset resource="sysinstaller.qrc"> 
     635               <normaloff>:/modules/images/lifepreserver.png</normaloff>:/modules/images/lifepreserver.png</iconset> 
     636             </property> 
     637             <property name="iconSize"> 
     638              <size> 
     639               <width>32</width> 
     640               <height>32</height> 
     641              </size> 
     642             </property> 
     643            </widget> 
    627644           </item> 
    628645          </layout> 
     
    10851102        </item> 
    10861103        <item row="1" column="1"> 
    1087          <widget class="QGroupBox" name="groupBox_5"> 
     1104         <widget class="QGroupBox" name="groupInstall"> 
    10881105          <property name="font"> 
    10891106           <font> 
     
    12351252        </item> 
    12361253        <item row="1" column="1"> 
    1237          <widget class="QLabel" name="label_3"> 
     1254         <widget class="QLabel" name="labelFinished"> 
    12381255          <property name="styleSheet"> 
    12391256           <string notr="true">background: transparent;</string> 
  • src-qt4/pc-installgui/pc-installgui.pro

    r24ef714 r93572be  
    1414    wizardDisk.cpp \ 
    1515    wizardFreeBSD.cpp \ 
     16    wizardRestore.cpp \ 
    1617    installer.cpp \ 
    1718    backend.cpp 
     
    2526    wizardDisk.h \ 
    2627    wizardFreeBSD.h \ 
     28    wizardRestore.h \ 
    2729    helpText.h \ 
    2830    backend.h 
     
    98100dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm /usr/local/share/pcbsd/i18n/ 
    99101 
    100 INSTALLS += target dotrans 
     102scripts.path=/usr/local/share/pcbsd/pc-installgui 
     103scripts.extra=cp scripts/* /usr/local/share/pcbsd/pc-installgui/ && chmod 755 /usr/local/share/pcbsd/pc-installgui/*.sh 
    101104 
    102 FORMS += installer.ui dialogCheckHardware.ui dialogDesktopSelection.ui dialogFSSize.ui dialogHelp.ui wizardFreeBSD.ui dialogKeyboard.ui wizardDisk.ui dialogInfoBox.ui 
     105INSTALLS += target dotrans scripts 
     106 
     107FORMS += installer.ui dialogCheckHardware.ui dialogDesktopSelection.ui dialogFSSize.ui dialogHelp.ui wizardFreeBSD.ui dialogKeyboard.ui wizardDisk.ui dialogInfoBox.ui wizardRestore.ui 
     108 
    103109RESOURCES += sysinstaller.qrc 
  • src-qt4/pc-installgui/sysinstaller.qrc

    r0de7e02 r93572be  
    11<RCC> 
    22  <qresource prefix="/modules"> 
     3    <file>images/lifepreserver.png</file> 
    34    <file>images/configure.png</file> 
    45    <file>images/usb.png</file> 
  • src-qt4/pc-installgui/wizardDisk.cpp

    r454e8cd3 r93572be  
    1919{ 
    2020  prevID = 0; 
     21  restoreMode=false; 
    2122 
    2223  populateDiskInfo(); 
     
    444445  slotTreeDiskChanged();   
    445446 
     447  if ( restoreMode ) { 
     448     treeMounts->setEnabled(false); 
     449     pushRemoveMount->setEnabled(false); 
     450     pushAddMount->setEnabled(false); 
     451     labelMounts->setText(tr("The original system datasets / mount-points will be automatically restored.")); 
     452  } 
     453 
    446454} 
    447455 
     
    10611069} 
    10621070 
     1071void wizardDisk::setRestoreMode() 
     1072{ 
     1073  restoreMode=true; 
     1074} 
  • src-qt4/pc-installgui/wizardDisk.h

    r0ece806 r93572be  
    2020 
    2121    void programInit(); 
     22    void setRestoreMode(); 
    2223    virtual int nextId() const; 
    2324 
     
    8788    QMenu *popupNE; 
    8889    dialogFSSize *rFS; 
     90    bool restoreMode; 
    8991    enum { Page_Intro, Page_BasicDisk, Page_ZFS, Page_Mounts, Page_Expert, Page_Confirmation }; 
    9092 
  • src-qt4/pc-installgui/wizardDisk.ui

    r3d554ff r93572be  
    673673    </item> 
    674674    <item row="1" column="1"> 
    675      <widget class="QLabel" name="label_18"> 
     675     <widget class="QLabel" name="labelMounts"> 
    676676      <property name="sizePolicy"> 
    677677       <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> 
  • src-qt4/port-files/pkg-plist

    r06f4c30 r93572be  
    4343sbin/PCDMd 
    4444sbin/PCDM-xloop 
     45share/pcbsd/pc-installgui/load-usb-key.sh 
     46share/pcbsd/pc-installgui/get-zfs-restore-list.sh 
     47share/pcbsd/pc-installgui/setup-ssh-keys.sh 
    4548share/pcbsd/xstartup/enable-ibus.sh 
    4649share/pcbsd/xstartup/checkupdater.sh 
     
    26102613@dirrm share/pcbsd/pc-controlpanel/icons 
    26112614@dirrm share/pcbsd/pc-controlpanel 
     2615@dirrm share/pcbsd/pc-installgui 
    26122616@dirrm share/pcbsd/pc-netmanager/pics 
    26132617@dirrm share/pcbsd/pc-netmanager 
Note: See TracChangeset for help on using the changeset viewer.