|
Lines 250-256
Link Here
|
| 250 |
list<string> linux_partition_list = []; |
250 |
list<string> linux_partition_list = []; |
| 251 |
|
251 |
|
| 252 |
foreach (string device , map description, Storage::GetTargetMap(), { |
252 |
foreach (string device , map description, Storage::GetTargetMap(), { |
| 253 |
|
253 |
y2warning ("device: %1, descr: %2", device, description); |
| 254 |
foreach (map partition, description["partitions"]:[], ``{ |
254 |
foreach (map partition, description["partitions"]:[], ``{ |
| 255 |
|
255 |
|
| 256 |
y2internal ("partition: %1", partition); |
256 |
y2internal ("partition: %1", partition); |
|
Lines 300-306
Link Here
|
| 300 |
|
300 |
|
| 301 |
integer i = 0; |
301 |
integer i = 0; |
| 302 |
foreach (string partition_item, linux_partition_list, ``{ |
302 |
foreach (string partition_item, linux_partition_list, ``{ |
| 303 |
|
303 |
y2internal ("partition_item: %1", partition_item); |
| 304 |
if ((boolean) WFM::Execute (.local.mount, |
304 |
if ((boolean) WFM::Execute (.local.mount, |
| 305 |
[ partition_item, m_point, OSRExecute::OutputFile() ])) |
305 |
[ partition_item, m_point, OSRExecute::OutputFile() ])) |
| 306 |
{ |
306 |
{ |
|
Lines 331-337
Link Here
|
| 331 |
global define list<string> ValidRootPartitions(list<string> mount_possible_list, string mount_p) ``{ |
331 |
global define list<string> ValidRootPartitions(list<string> mount_possible_list, string mount_p) ``{ |
| 332 |
|
332 |
|
| 333 |
if (Mode::test ()) return mount_possible_list; |
333 |
if (Mode::test ()) return mount_possible_list; |
| 334 |
|
334 |
y2internal ("mount_possible_list: %1", mount_possible_list); |
| 335 |
if (size (mount_possible_list) == 0) return []; |
335 |
if (size (mount_possible_list) == 0) return []; |
| 336 |
|
336 |
|
| 337 |
// e.g.: ["/dev/hda1"] |
337 |
// e.g.: ["/dev/hda1"] |
|
Lines 340-346
Link Here
|
| 340 |
list<string> smpoints_found_partitions = []; |
340 |
list<string> smpoints_found_partitions = []; |
| 341 |
|
341 |
|
| 342 |
foreach (string partition_item, mount_possible_list, ``{ |
342 |
foreach (string partition_item, mount_possible_list, ``{ |
| 343 |
|
343 |
y2warning ("partition_item: %1", partition_item); |
| 344 |
if (! (boolean) WFM::Execute(.local.mount, |
344 |
if (! (boolean) WFM::Execute(.local.mount, |
| 345 |
[ partition_item, mount_p , OSRExecute::OutputFile() ])) |
345 |
[ partition_item, mount_p , OSRExecute::OutputFile() ])) |
| 346 |
{ |
346 |
{ |
|
Lines 367-373
Link Here
|
| 367 |
foreach (string mp, system_mount_points, ``{ |
367 |
foreach (string mp, system_mount_points, ``{ |
| 368 |
if (mp != "/") |
368 |
if (mp != "/") |
| 369 |
{ |
369 |
{ |
| 370 |
y2debug ("command: /usr/bin/test -d " + mount_p + mp); |
370 |
y2internal ("command: /usr/bin/test -d " + mount_p + mp); |
| 371 |
if (! OSRExecute::Command(.local.bash, |
371 |
if (! OSRExecute::Command(.local.bash, |
| 372 |
"/usr/bin/test -d "+ mount_p + mp)) |
372 |
"/usr/bin/test -d "+ mount_p + mp)) |
| 373 |
{ |
373 |
{ |