|--==> Geert Stappers writes: GS> On Thu, Jun 22, 2006 at 06:23:25AM +0200, Free Ekanayaka wrote: >>|--==> philagui writes: >> p> Wow that's harder than what I thought. Really no way to do this without p> modifying d-i ? >> >>I've run into the same problem, and as far as I know there's no way to >>do it with preseeding only. >> >>I've created a little udeb called partman-recipes udeb which does >>exactly what you want. You can find it here: >> >>http://trac.64studio.com/mediastation/browser/partman-recipes/trunk
GS> Looks like a subversion repository GS> | [EMAIL PROTECTED]:/usr/src/debian-installer GS> | $ cd .. GS> | [EMAIL PROTECTED]:/usr/src GS> | $ svn checkout http://trac.64studio.com/mediastation/browser/partman-recipes/trunk partman-recipes GS> | svn: PROPFIND request failed on '/mediastation/browser/partman-recipes/trunk' GS> | svn: PROPFIND of '/mediastation/browser/partman-recipes/trunk': 200 OK (http://trac.64studio.com) GS> | [EMAIL PROTECTED]:/usr/src GS> | $ GS> but something prevents a checkout Try: svn checkout svn://64studio.com/partman-recipes >>http://archive.64studio.com/pool/main/p/partman-recipes/ GS> It has a _0.6.tar.gz and a _0.7_all.udeb, GS> I took the 0.7 for further study. (Or should the 0.6 be used?) Oops, I did a binary only upload last time. The difference is subtle anyway. GS> What is the idea behind 'Check if Mediastation hardware is present'? It's there to prevent installation on machines different than a specific one (the system would not work otherwise). GS> The thing I don't understand is the 'ASK=true' at line 54, GS> because it overrules the 'ASK=true at line 49 GS> | : if [ -e $HOME ]; then GS> | : GS> | : depmod GS> | : modprobe jbd GS> | : modprobe ext3 GS> | : GS> | : mkdir -p $MNT GS> | : if mount $HOME $MNT; then GS> |49: ASK=true GS> | : umount $MNT GS> | : fi GS> | : fi GS> | : GS> |54:ASK=true Yes, that code is still unfinished, I wanted to force the question anyway for testing purposes. GS> I would try to avoid user input ( I prefer Full Automatic Installs ) GS> and would so skip the interaction. I made up this modification: GS> --- postinst_from_udeb 2006-06-22 10:48:13.000000000 +0200 GS> +++ postinst 2006-06-22 11:29:17.000000000 +0200 GS> @@ -46,13 +46,13 @@ GS> mkdir -p $MNT GS> if mount $HOME $MNT; then GS> - ASK=true GS> + KEEP=true GS> umount $MNT GS> + else GS> + ASK=true GS> fi GS> fi GS> -ASK=true GS> - GS> if [ "$ASK" = "true" ]; then GS> db_input critical partman-recipes/keep || true GS> db_go || true GS> It is based on the succesfull GS> mount of /dev/hda6 at /mnt/tmp ( mount $HOME $MNT ) That's fine, I've just posted the code in case you need some inspiration. Ciao, Free -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

