1
0
mirror of synced 2026-05-05 07:43:42 +00:00

swap-dev or noswap must be set with image-dev

This commit is contained in:
Dmitry Nedospasov
2010-08-30 22:23:58 +02:00
parent 8189d013bc
commit 80d002d8a8

View File

@@ -2106,11 +2106,21 @@ EOF
exit 127; exit 127;
} }
if ( $CONFIG{ 'image-dev' } && $CONFIG{ 'partitions' } ) if ( $CONFIG{ 'image-dev' } )
{ {
logprint("Please choose either image-dev or partitions, not both!\n"); if ( $CONFIG{ 'partitions' } )
$FAIL = 1; {
exit 127; logprint("Please choose either image-dev or partitions, not both!\n");
$FAIL = 1;
exit 127;
}
if ( !$CONFIG{ 'swap-dev' } && !$CONFIG{ 'noswap' } )
{
logprint("Please choose swap-dev or noswap with image-dev!\n");
$FAIL = 1;
exit 127;
}
} }