Skip loop and rom
This commit is contained in:
committed by
Robert Roth
parent
e48d1a9c38
commit
48ad21d329
@@ -66,7 +66,13 @@ find_primary_part (partition_info *primary_part, const char *m)
|
|||||||
|
|
||||||
if (tlvl == 0) {
|
if (tlvl == 0) {
|
||||||
|
|
||||||
if (strcmp (type, "disk") == 0) {
|
if (strcmp (type, "loop") == 0 || strcmp (type, "rom") == 0) {
|
||||||
|
|
||||||
|
n--;
|
||||||
|
tlvl = 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (strcmp (type, "disk") == 0) {
|
||||||
|
|
||||||
primary_part->max++;
|
primary_part->max++;
|
||||||
|
|
||||||
@@ -80,7 +86,13 @@ find_primary_part (partition_info *primary_part, const char *m)
|
|||||||
}
|
}
|
||||||
else if(tlvl == 1){
|
else if(tlvl == 1){
|
||||||
|
|
||||||
if (strcmp (type, "disk") == 0) {
|
if (strcmp (type, "loop") == 0 || strcmp (type, "rom") == 0) {
|
||||||
|
|
||||||
|
n--;
|
||||||
|
tlvl = 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (strcmp (type, "disk") == 0) {
|
||||||
|
|
||||||
n--;
|
n--;
|
||||||
tlvl = 0;
|
tlvl = 0;
|
||||||
@@ -102,7 +114,13 @@ find_primary_part (partition_info *primary_part, const char *m)
|
|||||||
}
|
}
|
||||||
else if( tlvl == 2){
|
else if( tlvl == 2){
|
||||||
|
|
||||||
if (strcmp(type, "disk") == 0) {
|
if (strcmp (type, "loop") == 0 || strcmp (type, "rom") == 0) {
|
||||||
|
|
||||||
|
n--;
|
||||||
|
tlvl = 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (strcmp(type, "disk") == 0) {
|
||||||
|
|
||||||
n--;
|
n--;
|
||||||
tlvl = 0;
|
tlvl = 0;
|
||||||
@@ -132,7 +150,13 @@ find_primary_part (partition_info *primary_part, const char *m)
|
|||||||
}
|
}
|
||||||
else if (tlvl == 3) {
|
else if (tlvl == 3) {
|
||||||
|
|
||||||
if (strcmp (type, "disk") == 0) {
|
if (strcmp (type, "loop") == 0 || strcmp (type, "rom") == 0) {
|
||||||
|
|
||||||
|
n--;
|
||||||
|
tlvl = 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (strcmp (type, "disk") == 0) {
|
||||||
|
|
||||||
n--;
|
n--;
|
||||||
tlvl = 0;
|
tlvl = 0;
|
||||||
|
Reference in New Issue
Block a user