|
|
|
@ -389,8 +389,8 @@ sub getarg{
|
|
|
|
|
if(!$data{arg}{'disk'}){$data{arg}{'disk'} = $data{arg}{'d'}}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if(defined $data{arg}{'S'} || defined $data{arg}{scratch}){
|
|
|
|
|
if(!$data{arg}{scratch}){$data{arg}{scratch} = $data{arg}{'S'}}
|
|
|
|
|
if(defined $data{arg}{'b'} || defined $data{arg}{build}){
|
|
|
|
|
if(!$data{arg}{build}){$data{arg}{build} = $data{arg}{'b'}}
|
|
|
|
|
$data{scratch_ws} = "/workspace";
|
|
|
|
|
}
|
|
|
|
|
if(defined $data{arg}{f} || defined $data{arg}{'force'}){
|
|
|
|
@ -506,7 +506,7 @@ sub getarg{
|
|
|
|
|
printmes(" -s, --os=[CLD|CLDX|CLS|CLSG|CDS] "); printmes(gettext('select operation system')); printmes(" (Calculate Linux Desktop KDE, Calculate Linux Desktop XFCE, Calculate Linux Scratch, Calculate Linux Scratch GNOME, Calculate Directory Server)\n");
|
|
|
|
|
|
|
|
|
|
printmes(" -d, --disk=DISK\t"); printmes(gettext('installation or building system volume')."\n");
|
|
|
|
|
printmes(" -S, --scratch\t\t"); printmes(gettext('installation for scratch builder')."\n");
|
|
|
|
|
printmes(" -b, --build\t\t"); printmes(gettext('installation for assembling')."\n");
|
|
|
|
|
printmes(" -f, --force\t\t"); printmes(gettext('do not prompt before overwriting')."\n");
|
|
|
|
|
|
|
|
|
|
printmes("\n".gettext('Installation and Update').":\n");
|
|
|
|
@ -6363,11 +6363,14 @@ sub initrd_clean{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# извлечем из squash образа конфигурацию ядра
|
|
|
|
|
if( $data{scratch_ws} ) {
|
|
|
|
|
if($data{scratch_ws}){
|
|
|
|
|
unsquash("/usr/src/linux");
|
|
|
|
|
my $curkernel = `readlink $chroot$data{scratch_ws}/usr/src/linux`;
|
|
|
|
|
chomp($curkernel);
|
|
|
|
|
unsquash("/usr/src/${curkernel}/.config") if $curkernel;
|
|
|
|
|
}else{
|
|
|
|
|
my $curkernel = `readlink $chroot/usr/src/linux`;
|
|
|
|
|
chomp($curkernel);
|
|
|
|
|
}
|
|
|
|
|
# проверим поддерживается ли ядром сжатие lzma и есть ли в наличии утилита lzma
|
|
|
|
|
if( -e "$chroot$data{scratch_ws}/usr/src/$curkernel/.config" && `cat $chroot$data{scratch_ws}/usr/src/linux/.config | \
|
|
|
|
|