Skip to content

Commit

Permalink
consider xen block device for update (bnc#808996)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fehr committed Apr 9, 2013
1 parent 420d77e commit 1a05753
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions storage/src/modules/Storage.ycp
Expand Up @@ -4892,13 +4892,21 @@ global define boolean HaveLinuxPartitions() ``{
foreach ( string dev, map disk, GetTargetMap(), ``{
if( !ret )
{
y2milestone( "HaveLinuxPartitions %1 typ:%2 pbl:%3 ro:%4 driver:%5",
dev, disk["type"]:`CT_UNKNOWN, IsPartitionable( disk ),
disk["readonly"]:false, disk["driver"]:"" );
if( IsPartitionable( disk ) )
{
foreach( map e, disk["partitions"]:[], ``{
ret = ret ||
Partitions::IsLinuxPartition( e["fsid"]:Partitions::fsid_native );
});
}
else if( disk["type"]:`CT_UNKNOWN==`CT_DISK && disk["readonly"]:false &&
disk["driver"]:""=="vbd" )
{
ret = true;
}
}
});
y2milestone( "HaveLinuxPartitions ret=%1", ret );
Expand Down

0 comments on commit 1a05753

Please sign in to comment.