Commit f6e48799d43c9753ba7e501a088289a72c4cc38a

Authored by Silvan Calarco
1 parent 69ecd6de09
Exists in master

installer: support (experimental!) for more filesystems (btrfs,nilfs2,jfs,xfs) and bad blocks check

Showing 4 changed files with 605 additions and 512 deletions Side-by-side Diff

installer/installer.kmdr
Changes suppressed. Click to show
... ... @@ -251,7 +251,7 @@
251 251 </font>
252 252 </property>
253 253 <property name="text">
254   - <string>Copyright (c) 2007-2014 by Silvan Calarco
  254 + <string>Copyright (c) 2007-2015 by Silvan Calarco
255 255 Released under the terms of the GNU GPL v3 license</string>
256 256 </property>
257 257 <property name="textFormat">
258 258  
... ... @@ -1764,56 +1764,8 @@
1764 1764 <property name="title">
1765 1765 <string>Advanced features</string>
1766 1766 </property>
1767   - <widget class="CheckBox">
1768   - <property name="name">
1769   - <cstring>clonebox</cstring>
1770   - </property>
1771   - <property name="geometry">
1772   - <rect>
1773   - <x>10</x>
1774   - <y>20</y>
1775   - <width>16</width>
1776   - <height>16</height>
1777   - </rect>
1778   - </property>
1779   - <property name="sizePolicy">
1780   - <sizepolicy>
1781   - <hsizetype>3</hsizetype>
1782   - <vsizetype>0</vsizetype>
1783   - <horstretch>0</horstretch>
1784   - <verstretch>0</verstretch>
1785   - </sizepolicy>
1786   - </property>
1787   - <property name="text">
1788   - <string></string>
1789   - </property>
1790   - </widget>
1791 1767 <widget class="Label">
1792 1768 <property name="name">
1793   - <cstring>Label22_2</cstring>
1794   - </property>
1795   - <property name="geometry">
1796   - <rect>
1797   - <x>30</x>
1798   - <y>20</y>
1799   - <width>520</width>
1800   - <height>16</height>
1801   - </rect>
1802   - </property>
1803   - <property name="sizePolicy">
1804   - <sizepolicy>
1805   - <hsizetype>3</hsizetype>
1806   - <vsizetype>5</vsizetype>
1807   - <horstretch>0</horstretch>
1808   - <verstretch>0</verstretch>
1809   - </sizepolicy>
1810   - </property>
1811   - <property name="text">
1812   - <string>Preserve changes made to current running system</string>
1813   - </property>
1814   - </widget>
1815   - <widget class="Label">
1816   - <property name="name">
1817 1769 <cstring>stablelabel</cstring>
1818 1770 </property>
1819 1771 <property name="enabled">
1820 1772  
1821 1773  
1822 1774  
1823 1775  
1824 1776  
1825 1777  
1826 1778  
1827 1779  
1828 1780  
1829 1781  
1830 1782  
1831 1783  
... ... @@ -1869,250 +1821,53 @@
1869 1821 <bool>false</bool>
1870 1822 </property>
1871 1823 </widget>
1872   - </widget>
1873   - <widget class="GroupBox">
1874   - <property name="name">
1875   - <cstring>PartitionBox</cstring>
1876   - </property>
1877   - <property name="enabled">
1878   - <bool>true</bool>
1879   - </property>
1880   - <property name="geometry">
1881   - <rect>
1882   - <x>10</x>
1883   - <y>70</y>
1884   - <width>560</width>
1885   - <height>290</height>
1886   - </rect>
1887   - </property>
1888   - <property name="sizePolicy">
1889   - <sizepolicy>
1890   - <hsizetype>3</hsizetype>
1891   - <vsizetype>7</vsizetype>
1892   - <horstretch>0</horstretch>
1893   - <verstretch>0</verstretch>
1894   - </sizepolicy>
1895   - </property>
1896   - <property name="title">
1897   - <string>Where do you want to install openmamba?</string>
1898   - </property>
1899   - <property name="associations" stdset="0">
1900   - <stringlist>
1901   - <string></string>
1902   - </stringlist>
1903   - </property>
1904   - <widget class="QLayoutWidget">
  1824 + <widget class="CheckBox">
1905 1825 <property name="name">
1906   - <cstring>Layout2</cstring>
  1826 + <cstring>clonebox</cstring>
1907 1827 </property>
1908 1828 <property name="geometry">
1909 1829 <rect>
1910 1830 <x>10</x>
1911   - <y>220</y>
1912   - <width>540</width>
1913   - <height>19</height>
1914   - </rect>
1915   - </property>
1916   - <hbox>
1917   - <property name="name">
1918   - <cstring>unnamed</cstring>
1919   - </property>
1920   - <property name="margin">
1921   - <number>0</number>
1922   - </property>
1923   - <property name="spacing">
1924   - <number>6</number>
1925   - </property>
1926   - <widget class="Label">
1927   - <property name="name">
1928   - <cstring>Label3</cstring>
1929   - </property>
1930   - <property name="sizePolicy">
1931   - <sizepolicy>
1932   - <hsizetype>1</hsizetype>
1933   - <vsizetype>5</vsizetype>
1934   - <horstretch>0</horstretch>
1935   - <verstretch>0</verstretch>
1936   - </sizepolicy>
1937   - </property>
1938   - <property name="font">
1939   - <font>
1940   - <bold>1</bold>
1941   - </font>
1942   - </property>
1943   - <property name="text">
1944   - <string>Install system on:</string>
1945   - </property>
1946   - <property name="alignment">
1947   - <set>AlignVCenter|AlignLeft</set>
1948   - </property>
1949   - </widget>
1950   - <widget class="Label">
1951   - <property name="name">
1952   - <cstring>showdevice</cstring>
1953   - </property>
1954   - <property name="sizePolicy">
1955   - <sizepolicy>
1956   - <hsizetype>7</hsizetype>
1957   - <vsizetype>5</vsizetype>
1958   - <horstretch>0</horstretch>
1959   - <verstretch>0</verstretch>
1960   - </sizepolicy>
1961   - </property>
1962   - <property name="text">
1963   - <string></string>
1964   - </property>
1965   - <property name="associations" stdset="0">
1966   - <stringlist>
1967   - <string></string>
1968   - </stringlist>
1969   - </property>
1970   - </widget>
1971   - </hbox>
1972   - </widget>
1973   - <widget class="Label">
1974   - <property name="name">
1975   - <cstring>Label24</cstring>
1976   - </property>
1977   - <property name="geometry">
1978   - <rect>
1979   - <x>10</x>
1980 1831 <y>20</y>
1981   - <width>540</width>
1982   - <height>60</height>
  1832 + <width>16</width>
  1833 + <height>16</height>
1983 1834 </rect>
1984 1835 </property>
1985   - <property name="font">
1986   - <font>
1987   - <italic>1</italic>
1988   - </font>
  1836 + <property name="sizePolicy">
  1837 + <sizepolicy>
  1838 + <hsizetype>3</hsizetype>
  1839 + <vsizetype>0</vsizetype>
  1840 + <horstretch>0</horstretch>
  1841 + <verstretch>0</verstretch>
  1842 + </sizepolicy>
1989 1843 </property>
1990 1844 <property name="text">
1991   - <string>Please, select the disk partition where you want the system to be installed.
1992   -&lt;br&gt;&lt;b&gt;WARNING: all current data on the selected partition will be lost.&lt;/b&gt;</string>
  1845 + <string></string>
1993 1846 </property>
1994   - <property name="textFormat">
1995   - <enum>RichText</enum>
1996   - </property>
1997   - <property name="alignment">
1998   - <set>WordBreak|AlignTop</set>
1999   - </property>
2000 1847 </widget>
2001   - <widget class="QLayoutWidget">
  1848 + <widget class="Label">
2002 1849 <property name="name">
2003   - <cstring>Layout4</cstring>
  1850 + <cstring>Label22_2</cstring>
2004 1851 </property>
2005 1852 <property name="geometry">
2006 1853 <rect>
2007   - <x>10</x>
2008   - <y>250</y>
2009   - <width>300</width>
2010   - <height>26</height>
  1854 + <x>30</x>
  1855 + <y>20</y>
  1856 + <width>520</width>
  1857 + <height>16</height>
2011 1858 </rect>
2012 1859 </property>
2013   - <hbox>
2014   - <property name="name">
2015   - <cstring>unnamed</cstring>
2016   - </property>
2017   - <property name="margin">
2018   - <number>0</number>
2019   - </property>
2020   - <property name="spacing">
2021   - <number>6</number>
2022   - </property>
2023   - <widget class="Label">
2024   - <property name="name">
2025   - <cstring>Label22</cstring>
2026   - </property>
2027   - <property name="sizePolicy">
2028   - <sizepolicy>
2029   - <hsizetype>3</hsizetype>
2030   - <vsizetype>5</vsizetype>
2031   - <horstretch>0</horstretch>
2032   - <verstretch>0</verstretch>
2033   - </sizepolicy>
2034   - </property>
2035   - <property name="text">
2036   - <string>Filesystem type:</string>
2037   - </property>
2038   - </widget>
2039   - <widget class="ComboBox">
2040   - <item>
2041   - <property name="text">
2042   - <string>ext4</string>
2043   - </property>
2044   - </item>
2045   - <item>
2046   - <property name="text">
2047   - <string>ext3</string>
2048   - </property>
2049   - </item>
2050   - <item>
2051   - <property name="text">
2052   - <string>reiserfs</string>
2053   - </property>
2054   - </item>
2055   - <item>
2056   - <property name="text">
2057   - <string>ext2</string>
2058   - </property>
2059   - </item>
2060   - <property name="name">
2061   - <cstring>fstypebox</cstring>
2062   - </property>
2063   - <property name="sizePolicy">
2064   - <sizepolicy>
2065   - <hsizetype>3</hsizetype>
2066   - <vsizetype>0</vsizetype>
2067   - <horstretch>0</horstretch>
2068   - <verstretch>0</verstretch>
2069   - </sizepolicy>
2070   - </property>
2071   - <property name="associations" stdset="0">
2072   - <stringlist>
2073   - <string></string>
2074   - </stringlist>
2075   - </property>
2076   - </widget>
2077   - <spacer>
2078   - <property name="name">
2079   - <cstring>Spacer1</cstring>
2080   - </property>
2081   - <property name="orientation">
2082   - <enum>Horizontal</enum>
2083   - </property>
2084   - <property name="sizeType">
2085   - <enum>Expanding</enum>
2086   - </property>
2087   - <property name="sizeHint">
2088   - <size>
2089   - <width>30</width>
2090   - <height>0</height>
2091   - </size>
2092   - </property>
2093   - </spacer>
2094   - </hbox>
2095   - </widget>
2096   - <widget class="ListBox">
2097   - <property name="name">
2098   - <cstring>devicesbox</cstring>
  1860 + <property name="sizePolicy">
  1861 + <sizepolicy>
  1862 + <hsizetype>3</hsizetype>
  1863 + <vsizetype>5</vsizetype>
  1864 + <horstretch>0</horstretch>
  1865 + <verstretch>0</verstretch>
  1866 + </sizepolicy>
2099 1867 </property>
2100   - <property name="geometry">
2101   - <rect>
2102   - <x>10</x>
2103   - <y>90</y>
2104   - <width>540</width>
2105   - <height>130</height>
2106   - </rect>
  1868 + <property name="text">
  1869 + <string>Preserve changes made to current running system</string>
2107 1870 </property>
2108   - <property name="populationText">
2109   - <string></string>
2110   - </property>
2111   - <property name="associations" stdset="0">
2112   - <stringlist>
2113   - <string></string>
2114   - </stringlist>
2115   - </property>
2116 1871 </widget>
2117 1872 </widget>
2118 1873 <widget class="ScriptObject">
2119 1874  
2120 1875  
2121 1876  
2122 1877  
2123 1878  
2124 1879  
2125 1880  
2126 1881  
2127 1882  
... ... @@ -2270,57 +2025,164 @@
2270 2025 </stringlist>
2271 2026 </property>
2272 2027 </widget>
2273   - </widget>
2274   - <widget class="QWidget">
2275   - <property name="name">
2276   - <cstring>home_choice</cstring>
2277   - </property>
2278   - <attribute name="title">
2279   - <string>Home partition choice</string>
2280   - </attribute>
2281   - <widget class="PixmapLabel">
2282   - <property name="name">
2283   - <cstring>PixmapLabel4_2</cstring>
2284   - </property>
2285   - <property name="geometry">
2286   - <rect>
2287   - <x>10</x>
2288   - <y>0</y>
2289   - <width>64</width>
2290   - <height>70</height>
2291   - </rect>
2292   - </property>
2293   - <property name="pixmap">
2294   - <pixmap>image6</pixmap>
2295   - </property>
2296   - </widget>
2297 2028 <widget class="GroupBox">
2298 2029 <property name="name">
2299   - <cstring>formathome_group</cstring>
  2030 + <cstring>PartitionBox</cstring>
2300 2031 </property>
2301 2032 <property name="enabled">
2302   - <bool>false</bool>
  2033 + <bool>true</bool>
2303 2034 </property>
2304 2035 <property name="geometry">
2305 2036 <rect>
2306 2037 <x>10</x>
2307   - <y>340</y>
  2038 + <y>70</y>
2308 2039 <width>560</width>
2309   - <height>90</height>
  2040 + <height>290</height>
2310 2041 </rect>
2311 2042 </property>
  2043 + <property name="sizePolicy">
  2044 + <sizepolicy>
  2045 + <hsizetype>3</hsizetype>
  2046 + <vsizetype>7</vsizetype>
  2047 + <horstretch>0</horstretch>
  2048 + <verstretch>0</verstretch>
  2049 + </sizepolicy>
  2050 + </property>
2312 2051 <property name="title">
2313   - <string>Which filesystem do you want?</string>
  2052 + <string>Where do you want to install openmamba?</string>
2314 2053 </property>
  2054 + <property name="associations" stdset="0">
  2055 + <stringlist>
  2056 + <string></string>
  2057 + </stringlist>
  2058 + </property>
2315 2059 <widget class="QLayoutWidget">
2316 2060 <property name="name">
2317   - <cstring>Layout4_2</cstring>
  2061 + <cstring>Layout2</cstring>
2318 2062 </property>
2319 2063 <property name="geometry">
2320 2064 <rect>
2321   - <x>11</x>
2322   - <y>50</y>
2323   - <width>300</width>
  2065 + <x>10</x>
  2066 + <y>220</y>
  2067 + <width>540</width>
  2068 + <height>19</height>
  2069 + </rect>
  2070 + </property>
  2071 + <hbox>
  2072 + <property name="name">
  2073 + <cstring>unnamed</cstring>
  2074 + </property>
  2075 + <property name="margin">
  2076 + <number>0</number>
  2077 + </property>
  2078 + <property name="spacing">
  2079 + <number>6</number>
  2080 + </property>
  2081 + <widget class="Label">
  2082 + <property name="name">
  2083 + <cstring>Label3</cstring>
  2084 + </property>
  2085 + <property name="sizePolicy">
  2086 + <sizepolicy>
  2087 + <hsizetype>1</hsizetype>
  2088 + <vsizetype>5</vsizetype>
  2089 + <horstretch>0</horstretch>
  2090 + <verstretch>0</verstretch>
  2091 + </sizepolicy>
  2092 + </property>
  2093 + <property name="font">
  2094 + <font>
  2095 + <bold>1</bold>
  2096 + </font>
  2097 + </property>
  2098 + <property name="text">
  2099 + <string>Install system on:</string>
  2100 + </property>
  2101 + <property name="alignment">
  2102 + <set>AlignVCenter|AlignLeft</set>
  2103 + </property>
  2104 + </widget>
  2105 + <widget class="Label">
  2106 + <property name="name">
  2107 + <cstring>showdevice</cstring>
  2108 + </property>
  2109 + <property name="sizePolicy">
  2110 + <sizepolicy>
  2111 + <hsizetype>7</hsizetype>
  2112 + <vsizetype>5</vsizetype>
  2113 + <horstretch>0</horstretch>
  2114 + <verstretch>0</verstretch>
  2115 + </sizepolicy>
  2116 + </property>
  2117 + <property name="text">
  2118 + <string></string>
  2119 + </property>
  2120 + <property name="associations" stdset="0">
  2121 + <stringlist>
  2122 + <string></string>
  2123 + </stringlist>
  2124 + </property>
  2125 + </widget>
  2126 + </hbox>
  2127 + </widget>
  2128 + <widget class="Label">
  2129 + <property name="name">
  2130 + <cstring>Label24</cstring>
  2131 + </property>
  2132 + <property name="geometry">
  2133 + <rect>
  2134 + <x>10</x>
  2135 + <y>20</y>
  2136 + <width>540</width>
  2137 + <height>60</height>
  2138 + </rect>
  2139 + </property>
  2140 + <property name="font">
  2141 + <font>
  2142 + <italic>1</italic>
  2143 + </font>
  2144 + </property>
  2145 + <property name="text">
  2146 + <string>Please, select the disk partition where you want the system to be installed.
  2147 +&lt;br&gt;&lt;b&gt;WARNING: all current data on the selected partition will be lost.&lt;/b&gt;</string>
  2148 + </property>
  2149 + <property name="textFormat">
  2150 + <enum>RichText</enum>
  2151 + </property>
  2152 + <property name="alignment">
  2153 + <set>WordBreak|AlignTop</set>
  2154 + </property>
  2155 + </widget>
  2156 + <widget class="ListBox">
  2157 + <property name="name">
  2158 + <cstring>devicesbox</cstring>
  2159 + </property>
  2160 + <property name="geometry">
  2161 + <rect>
  2162 + <x>10</x>
  2163 + <y>90</y>
  2164 + <width>540</width>
  2165 + <height>130</height>
  2166 + </rect>
  2167 + </property>
  2168 + <property name="populationText">
  2169 + <string></string>
  2170 + </property>
  2171 + <property name="associations" stdset="0">
  2172 + <stringlist>
  2173 + <string></string>
  2174 + </stringlist>
  2175 + </property>
  2176 + </widget>
  2177 + <widget class="QLayoutWidget">
  2178 + <property name="name">
  2179 + <cstring>Layout13</cstring>
  2180 + </property>
  2181 + <property name="geometry">
  2182 + <rect>
  2183 + <x>10</x>
  2184 + <y>250</y>
  2185 + <width>540</width>
2324 2186 <height>26</height>
2325 2187 </rect>
2326 2188 </property>
2327 2189  
... ... @@ -2336,11 +2198,11 @@
2336 2198 </property>
2337 2199 <widget class="Label">
2338 2200 <property name="name">
2339   - <cstring>Label22_3</cstring>
  2201 + <cstring>Label22</cstring>
2340 2202 </property>
2341 2203 <property name="sizePolicy">
2342 2204 <sizepolicy>
2343   - <hsizetype>3</hsizetype>
  2205 + <hsizetype>1</hsizetype>
2344 2206 <vsizetype>5</vsizetype>
2345 2207 <horstretch>0</horstretch>
2346 2208 <verstretch>0</verstretch>
2347 2209  
2348 2210  
2349 2211  
2350 2212  
2351 2213  
2352 2214  
2353 2215  
2354 2216  
... ... @@ -2353,44 +2215,75 @@
2353 2215 <widget class="ComboBox">
2354 2216 <item>
2355 2217 <property name="text">
2356   - <string>ext4</string>
  2218 + <string>btrfs</string>
2357 2219 </property>
2358 2220 </item>
2359 2221 <item>
2360 2222 <property name="text">
  2223 + <string>ext2</string>
  2224 + </property>
  2225 + </item>
  2226 + <item>
  2227 + <property name="text">
2361 2228 <string>ext3</string>
2362 2229 </property>
2363 2230 </item>
2364 2231 <item>
2365 2232 <property name="text">
  2233 + <string>ext4</string>
  2234 + </property>
  2235 + </item>
  2236 + <item>
  2237 + <property name="text">
  2238 + <string>jfs</string>
  2239 + </property>
  2240 + </item>
  2241 + <item>
  2242 + <property name="text">
  2243 + <string>nilfs2</string>
  2244 + </property>
  2245 + </item>
  2246 + <item>
  2247 + <property name="text">
2366 2248 <string>reiserfs</string>
2367 2249 </property>
2368 2250 </item>
2369 2251 <item>
2370 2252 <property name="text">
2371   - <string>ext2</string>
  2253 + <string>xfs</string>
2372 2254 </property>
2373 2255 </item>
2374 2256 <property name="name">
2375   - <cstring>fstypebox_2</cstring>
  2257 + <cstring>fstypebox</cstring>
2376 2258 </property>
2377 2259 <property name="sizePolicy">
2378 2260 <sizepolicy>
2379   - <hsizetype>3</hsizetype>
  2261 + <hsizetype>1</hsizetype>
2380 2262 <vsizetype>0</vsizetype>
2381 2263 <horstretch>0</horstretch>
2382 2264 <verstretch>0</verstretch>
2383 2265 </sizepolicy>
2384 2266 </property>
  2267 + <property name="currentItem">
  2268 + <number>3</number>
  2269 + </property>
2385 2270 <property name="associations" stdset="0">
2386 2271 <stringlist>
2387 2272 <string></string>
2388 2273 </stringlist>
2389 2274 </property>
2390 2275 </widget>
  2276 + <widget class="CheckBox">
  2277 + <property name="name">
  2278 + <cstring>fsbadblocks</cstring>
  2279 + </property>
  2280 + <property name="text">
  2281 + <string>Check for &amp;bad blocks (slow!)</string>
  2282 + </property>
  2283 + </widget>
2391 2284 <spacer>
2392 2285 <property name="name">
2393   - <cstring>Spacer1_2</cstring>
  2286 + <cstring>Spacer1</cstring>
2394 2287 </property>
2395 2288 <property name="orientation">
2396 2289 <enum>Horizontal</enum>
2397 2290  
2398 2291  
... ... @@ -2400,35 +2293,38 @@
2400 2293 </property>
2401 2294 <property name="sizeHint">
2402 2295 <size>
2403   - <width>30</width>
  2296 + <width>16</width>
2404 2297 <height>0</height>
2405 2298 </size>
2406 2299 </property>
2407 2300 </spacer>
2408 2301 </hbox>
2409 2302 </widget>
2410   - <widget class="Label">
2411   - <property name="name">
2412   - <cstring>Label33_3</cstring>
2413   - </property>
2414   - <property name="geometry">
2415   - <rect>
2416   - <x>10</x>
2417   - <y>20</y>
2418   - <width>510</width>
2419   - <height>20</height>
2420   - </rect>
2421   - </property>
2422   - <property name="font">
2423   - <font>
2424   - <italic>1</italic>
2425   - </font>
2426   - </property>
2427   - <property name="text">
2428   - <string>Partition will be formatted with the selected filesystem.</string>
2429   - </property>
2430   - </widget>
2431 2303 </widget>
  2304 + </widget>
  2305 + <widget class="QWidget">
  2306 + <property name="name">
  2307 + <cstring>home_choice</cstring>
  2308 + </property>
  2309 + <attribute name="title">
  2310 + <string>Home partition choice</string>
  2311 + </attribute>
  2312 + <widget class="PixmapLabel">
  2313 + <property name="name">
  2314 + <cstring>PixmapLabel4_2</cstring>
  2315 + </property>
  2316 + <property name="geometry">
  2317 + <rect>
  2318 + <x>10</x>
  2319 + <y>0</y>
  2320 + <width>64</width>
  2321 + <height>70</height>
  2322 + </rect>
  2323 + </property>
  2324 + <property name="pixmap">
  2325 + <pixmap>image6</pixmap>
  2326 + </property>
  2327 + </widget>
2432 2328 <widget class="Label">
2433 2329 <property name="name">
2434 2330 <cstring>Label21_2_4</cstring>
... ... @@ -2453,118 +2349,6 @@
2453 2349 <set>AlignCenter</set>
2454 2350 </property>
2455 2351 </widget>
2456   - <widget class="ScriptObject">
2457   - <property name="name">
2458   - <cstring>setlabel_2</cstring>
2459   - </property>
2460   - <property name="geometry">
2461   - <rect>
2462   - <x>550</x>
2463   - <y>50</y>
2464   - <width>32</width>
2465   - <height>32</height>
2466   - </rect>
2467   - </property>
2468   - <property name="populationText">
2469   - <string></string>
2470   - </property>
2471   - <property name="associations" stdset="0">
2472   - <stringlist>
2473   - <string>@execBegin
2474   -@format_home_box.setEnabled(false)
2475   -@if (@devicesbox_2.currentItem &gt;= 0)
2476   - currdev=@String.section(@devicesbox_2.item(@devicesbox_2.currentItem)," ",0)
2477   - if [ "$currdev" != "none" -a "$currdev" != "nessuna" ]; then
2478   - dcop @dcopid KommanderIf "setText(QString,QString)" showdevice_2 "@devicesbox_2.item(@devicesbox_2.currentItem)"
2479   - dcop @dcopid KommanderIf "setEnabled(QString,bool)" format_home_box true
2480   - dcop @dcopid KommanderIf "setEnabled(QString,bool)" formathome_group @format_home_box.checked()
2481   - else
2482   - dcop @dcopid KommanderIf "setText(QString,QString)" showdevice_2 ""
2483   - dcop @dcopid KommanderIf "setEnabled(QString,bool)" format_home_box false
2484   - dcop @dcopid KommanderIf "setEnabled(QString,bool)" formathome_group false
2485   - fi
2486   - @dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, true)
2487   - @BackBox.setChecked(true)
2488   - dcop @dcopid KommanderIf "setCurrentItem(int)" 0
2489   -@endif
2490   -@execEnd
2491   -@setBootableCheckbox.execute()</string>
2492   - </stringlist>
2493   - </property>
2494   - </widget>
2495   - <widget class="ScriptObject">
2496   - <property name="name">
2497   - <cstring>scanDevices_2</cstring>
2498   - </property>
2499   - <property name="geometry">
2500   - <rect>
2501   - <x>550</x>
2502   - <y>10</y>
2503   - <width>32</width>
2504   - <height>32</height>
2505   - </rect>
2506   - </property>
2507   - <property name="associations" stdset="0">
2508   - <stringlist>
2509   - <string>@devicesbox_2.clear
2510   -@BackBox.setChecked(true)
2511   -@NextBox.setChecked(true)
2512   -@execBegin
2513   -function get_udisks_key() {
2514   - LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
2515   -}
2516   -devices=`udisks --enumerate-device-files | grep -v /dev/disk | sort -n -r`
2517   -partlabel=
2518   -installdevice=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
2519   -dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox_2 "@i18n("none (just use a single partition for system and home)")" 0
2520   -for device in $devices; do
2521   - [ "${device:5}" = "$installdevice" ] &amp;&amp; continue
2522   - if [ "${device:5:3}" != "dm-" ]; then
2523   - native_path=`get_udisks_key $device native-path`
2524   - [ -e $native_path/partition ] || continue
2525   - fi
2526   - is_system_internal=`get_udisks_key $device "system internal"`
2527   - volsize=`get_udisks_key $device size`
2528   - volsize=`expr $volsize / 1024 / 1024`
2529   - if [ "${device:5:3}" = "dm-" ]; then
2530   - volname=`sudo dmsetup info $device | grep "^Name:" | sed "s|.*[[:space:]]||"`
2531   - else
2532   - volname=`get_udisks_key $device label`
2533   - fi
2534   - [ $volsize -ge 512 ] || continue
2535   - [ "$volname" ] || volname="unnamed"
2536   - parttype=`get_udisks_key $device usage`
2537   - [ "$parttype" ] || parttype="unknown"
2538   - partscheme=`get_udisks_key $device scheme`
2539   - [ "$partscheme" ] || partscheme="unknown"
2540   - fstype=`get_udisks_key $device type`
2541   - [ "$fstype" ] || fstype="unformatted"
2542   - add_info=""
2543   - [ "$is_system_internal" = "1" ] || {
2544   - add_info=",removable"
2545   - [ @removablebox.checked == 1 ] || continue
2546   - }
2547   - if [ "$partscheme" == "mbr" -o "$partscheme" == "embr" ]; then
2548   - partlabel="$partlabel&lt;br&gt;${device:5} $fstype $volname $volsize MB"
2549   - case "$fstype" in
2550   - ext2|ext3|ext4|reiserfs|reiser4|unformatted)
2551   - dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox_2 "${device:5} ($fstype,$volname,$volsize MB${add_info})" 1 ;;
2552   - *) ;;
2553   - esac
2554   - elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
2555   - case "$fstype" in
2556   - swap|iso9660) ;;
2557   - ext2|ext3|ext4|reiserfs|reiser4|unformatted)
2558   - dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox_2 "${device:5} ($fstype,$volname,$volsize MB${add_info})" 1 ;;
2559   - *) ;;
2560   - esac
2561   - fi
2562   -done
2563   -@execEnd
2564   -</string>
2565   - </stringlist>
2566   - </property>
2567   - </widget>
2568 2352 <widget class="GroupBox">
2569 2353 <property name="name">
2570 2354 <cstring>PartitionBox_2</cstring>
... ... @@ -2783,6 +2567,292 @@
2783 2567 </hbox>
2784 2568 </widget>
2785 2569 </widget>
  2570 + <widget class="ScriptObject">
  2571 + <property name="name">
  2572 + <cstring>scanDevices_2</cstring>
  2573 + </property>
  2574 + <property name="geometry">
  2575 + <rect>
  2576 + <x>550</x>
  2577 + <y>10</y>
  2578 + <width>32</width>
  2579 + <height>32</height>
  2580 + </rect>
  2581 + </property>
  2582 + <property name="associations" stdset="0">
  2583 + <stringlist>
  2584 + <string>@devicesbox_2.clear
  2585 +@BackBox.setChecked(true)
  2586 +@NextBox.setChecked(true)
  2587 +@execBegin
  2588 +function get_udisks_key() {
  2589 + LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
  2590 +}
  2591 +devices=`udisks --enumerate-device-files | grep -v /dev/disk | sort -n -r`
  2592 +partlabel=
  2593 +installdevice=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
  2594 +dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox_2 "@i18n("none (just use a single partition for system and home)")" 0
  2595 +for device in $devices; do
  2596 + [ "${device:5}" = "$installdevice" ] &amp;&amp; continue
  2597 + if [ "${device:5:3}" != "dm-" ]; then
  2598 + native_path=`get_udisks_key $device native-path`
  2599 + [ -e $native_path/partition ] || continue
  2600 + fi
  2601 + is_system_internal=`get_udisks_key $device "system internal"`
  2602 + volsize=`get_udisks_key $device size`
  2603 + volsize=`expr $volsize / 1024 / 1024`
  2604 + if [ "${device:5:3}" = "dm-" ]; then
  2605 + volname=`sudo dmsetup info $device | grep "^Name:" | sed "s|.*[[:space:]]||"`
  2606 + else
  2607 + volname=`get_udisks_key $device label`
  2608 + fi
  2609 + [ $volsize -ge 512 ] || continue
  2610 + [ "$volname" ] || volname="unnamed"
  2611 + parttype=`get_udisks_key $device usage`
  2612 + [ "$parttype" ] || parttype="unknown"
  2613 + partscheme=`get_udisks_key $device scheme`
  2614 + [ "$partscheme" ] || partscheme="unknown"
  2615 + fstype=`get_udisks_key $device type`
  2616 + [ "$fstype" ] || fstype="unformatted"
  2617 + add_info=""
  2618 + [ "$is_system_internal" = "1" ] || {
  2619 + add_info=",removable"
  2620 + [ @removablebox.checked == 1 ] || continue
  2621 + }
  2622 + if [ "$partscheme" == "mbr" -o "$partscheme" == "embr" ]; then
  2623 + partlabel="$partlabel&lt;br&gt;${device:5} $fstype $volname $volsize MB"
  2624 + case "$fstype" in
  2625 + ext2|ext3|ext4|reiserfs|reiser4|unformatted)
  2626 + dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox_2 "${device:5} ($fstype,$volname,$volsize MB${add_info})" 1 ;;
  2627 + *) ;;
  2628 + esac
  2629 + elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
  2630 + case "$fstype" in
  2631 + swap|iso9660) ;;
  2632 + ext2|ext3|ext4|reiserfs|reiser4|unformatted)
  2633 + dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox_2 "${device:5} ($fstype,$volname,$volsize MB${add_info})" 1 ;;
  2634 + *) ;;
  2635 + esac
  2636 + fi
  2637 +done
  2638 +@execEnd
  2639 +</string>
  2640 + </stringlist>
  2641 + </property>
  2642 + </widget>
  2643 + <widget class="ScriptObject">
  2644 + <property name="name">
  2645 + <cstring>setlabel_2</cstring>
  2646 + </property>
  2647 + <property name="geometry">
  2648 + <rect>
  2649 + <x>550</x>
  2650 + <y>50</y>
  2651 + <width>32</width>
  2652 + <height>32</height>
  2653 + </rect>
  2654 + </property>
  2655 + <property name="populationText">
  2656 + <string></string>
  2657 + </property>
  2658 + <property name="associations" stdset="0">
  2659 + <stringlist>
  2660 + <string>@execBegin
  2661 +@format_home_box.setEnabled(false)
  2662 +@if (@devicesbox_2.currentItem &gt;= 0)
  2663 + currdev=@String.section(@devicesbox_2.item(@devicesbox_2.currentItem)," ",0)
  2664 + if [ "$currdev" != "none" -a "$currdev" != "nessuna" ]; then
  2665 + dcop @dcopid KommanderIf "setText(QString,QString)" showdevice_2 "@devicesbox_2.item(@devicesbox_2.currentItem)"
  2666 + dcop @dcopid KommanderIf "setEnabled(QString,bool)" format_home_box true
  2667 + dcop @dcopid KommanderIf "setEnabled(QString,bool)" formathome_group @format_home_box.checked()
  2668 + else
  2669 + dcop @dcopid KommanderIf "setText(QString,QString)" showdevice_2 ""
  2670 + dcop @dcopid KommanderIf "setEnabled(QString,bool)" format_home_box false
  2671 + dcop @dcopid KommanderIf "setEnabled(QString,bool)" formathome_group false
  2672 + fi
  2673 + @dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, true)
  2674 + @BackBox.setChecked(true)
  2675 + dcop @dcopid KommanderIf "setCurrentItem(int)" 0
  2676 +@endif
  2677 +@execEnd
  2678 +@setBootableCheckbox.execute()</string>
  2679 + </stringlist>
  2680 + </property>
  2681 + </widget>
  2682 + <widget class="GroupBox">
  2683 + <property name="name">
  2684 + <cstring>formathome_group</cstring>
  2685 + </property>
  2686 + <property name="enabled">
  2687 + <bool>false</bool>
  2688 + </property>
  2689 + <property name="geometry">
  2690 + <rect>
  2691 + <x>10</x>
  2692 + <y>340</y>
  2693 + <width>560</width>
  2694 + <height>90</height>
  2695 + </rect>
  2696 + </property>
  2697 + <property name="title">
  2698 + <string>Which filesystem do you want?</string>
  2699 + </property>
  2700 + <widget class="Label">
  2701 + <property name="name">
  2702 + <cstring>Label33_3</cstring>
  2703 + </property>
  2704 + <property name="geometry">
  2705 + <rect>
  2706 + <x>10</x>
  2707 + <y>20</y>
  2708 + <width>510</width>
  2709 + <height>20</height>
  2710 + </rect>
  2711 + </property>
  2712 + <property name="font">
  2713 + <font>
  2714 + <italic>1</italic>
  2715 + </font>
  2716 + </property>
  2717 + <property name="text">
  2718 + <string>Partition will be formatted with the selected filesystem.</string>
  2719 + </property>
  2720 + </widget>
  2721 + <widget class="QLayoutWidget">
  2722 + <property name="name">
  2723 + <cstring>Layout12</cstring>
  2724 + </property>
  2725 + <property name="geometry">
  2726 + <rect>
  2727 + <x>10</x>
  2728 + <y>50</y>
  2729 + <width>530</width>
  2730 + <height>26</height>
  2731 + </rect>
  2732 + </property>
  2733 + <hbox>