[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Custom task for tasksel menu during installation



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

06.04.2011 13:25, Ben Armstrong ?????:
> On 05/04/11 10:33 AM, Rubik Andrey wrote:
>> now I have another problem...
>>
>> How can I create my own item for tasksel menu with
>> "--debian-installer true"?
>
> Good question (although more of a debian-installer question than a
> Debian Live question). Read the tasksel doc to figure out how to
> customized tasksel. You can use
> config/binary_debian-installer-includes/ to add or change files
> that are components of the installer.
>
> Ben
>
>
I did it! :)

cat custom-tasks
#! /bin/sh
set -e

echo 'Task: KVM
Section: server
Relevance: 8
Description: KVM packages
 This task provides such packages:
 libvirt-bin
 kvm
 virtinst
 bridge-utils
Packages: list
 libvirt-bin
 kvm
 virtinst
 bridge-utils
' > /target/usr/share/tasksel/kvm.desc

mkdir -p config/binary_debian-installer-includes/usr/lib/pre-pkgsel.d/
cp custom-tasks
config/binary_debian-installer-includes/usr/lib/pre-pkgsel.d/90custom-tasks
chmod +x
config/binary_debian-installer-includes/usr/lib/pre-pkgsel.d/90custom-tasks


Perhaps, some function that provide method for generating custom tasks
for tasksel menu in next version of live-build wil be useful... I hope
this example helps.

- -- 
Best regards
Rubik Andrey
email: tirnotaure@gmail.com
GPGKey: 1024D / 2EA8E207 2010-03-01
7E60 4450 CD90 6E2D E949  6254 7FDC 5F5C 2EA8 E207
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2fFzkACgkQf9xfXC6o4gdQlwCgrw2JMu8HyU2Z3G0V/g2HygIC
2Y8AmQHHGTUu3tpo9mbcx3yo9s2p9u3/
=5hUT
-----END PGP SIGNATURE-----


Reply to: