tasksel in package_config

Ronan KERYELL Ronan.Keryell at enst-bretagne.fr
Tue Jan 8 11:59:40 CET 2002


During installation the system still asks me for a Return or Yes.

It appears in the log file software.log as :


/sbin/install_packages: read config file /fai/package_config/DEFAULT
/sbin/install_packages: read config file /fai/package_config/KERNEL_SOFT
/sbin/install_packages: read config file /fai/package_config/BASE
/sbin/install_packages: read config file /fai/package_config/REACTIVE
/sbin/install_packages: read config file /fai/package_config/reactive3
chroot /tmp/target tasksel -n install basic-desktop c-dev french desktop
Reading Package Lists...
Building Dependency Tree...
The following extra packages will be installed:
  aalib1 asclock-themes autoconf2.13 autotools-dev cpp-2.95 defoma dialog eject
  esound-common file g++-2.95 gcc-2.95 gconf gdk-imlib1 gnome-bin gnome-core
  gnome-libs-data gnome-mime-data gnome-panel-data gsfonts iconx imlib1 ispell
  kdelibs3 lesstif1 libart2 libaudiofile0 libbz2-1.0 libc6-dev libcapplet0
  libcdparanoia0 libdb2-util libdps1 libesd0 libexpat1 libfreetype6 libgconf11
  libgdk-pixbuf-gnome2 libgdk-pixbuf2 libghttp1 libgimp1.2 libglade-gnome0
  libglade0 libglib1.2 libgnome-vfs-common libgnome-vfs0 libgnome32
  libgnomesupport0 libgnomeui32 libgnorba27 libgnorbagtk0 libgpmg1 libgtk1.2
  libgtk1.2-common libgtkxmhtml1 libgtop1 libjpeg62 liblcms libmng1 libmpeg1
  liboaf0 liborbit0 libpanel-applet0 libpng2 libqt2 libscrollkeeper0
  libstdc++2.10-dev libtiff3g libungif4g libxaw7 libxml1 libxml2 libxslt1
  libzvt2 locales m4 mc-common oaf perl perl-modules python python2.1
  scrollkeeper xbase-clients xfonts-100dpi xfonts-75dpi xfonts-base
  xfonts-scalable xfree86-common xlibmesa3 xlibs xserver-common xserver-xfree86
  xutils zlib1g 
The following NEW packages will be installed:
  aalib1 abiword asclock-themes autoconf autoconf2.13 automake autoproject
  autotools-dev binutils bison c2man cflow cpp cpp-2.95 cutils cvs cxref defoma
  dialog doc-debian-fr doc-linux-fr eject esound esound-common file flex g++
  g++-2.95 gcc gcc-2.95 gconf gdb gdk-imlib1 gdm gettext gimp1.2 glibc-doc gmc
  gnome-applets gnome-bin gnome-control-center gnome-core gnome-help
  gnome-libs-data gnome-mime-data gnome-panel gnome-panel-data gnome-session
  gnome-terminal gnome-users-guide gnome-utils gsfonts iconx ifrench-gut
  imlib-base imlib1 indent ispell kcalc kdelibs3 language-env lesstif1 libart2
  libaudiofile0 libbz2-1.0 libc6-dev libcapplet0 libcdparanoia0 libdb2-util
  libdps1 libesd0 libexpat1 libfreetype6 libgconf11 libgdk-pixbuf-gnome2
  libgdk-pixbuf2 libghttp1 libgimp1.2 libglade-gnome0 libglade0 libglib1.2
  libgnome-vfs-common libgnome-vfs0 libgnome32 libgnomesupport0 libgnomeui32
  libgnorba27 libgnorbagtk0 libgpmg1 libgtk1.2 libgtk1.2-common libgtkxmhtml1
  libgtop1 libjpeg62 liblcms libmng1 libmpeg1 liboaf0 liborbit0
  libpanel-applet0 libpng2 libqt2 libscrollkeeper0 libstdc++2.10-dev libtiff3g
  libtool libungif4g libxaw7 libxml1 libxml2 libxslt1 libzvt2 liwc locales
  ltrace m4 make manpages-dev manpages-fr mc-common menu metrics nowebm oaf
  patch perl perl-modules python python2.1 scrollkeeper stl-manual strace
  wfrench x-window-system-core xbase-clients xfonts-100dpi xfonts-75dpi
  xfonts-base xfonts-intl-european xfonts-scalable xfree86-common xlibmesa3
  xlibs xserver-common xserver-xfree86 xtel xutils zlib1g 
0 packages upgraded, 148 newly installed, 0 to remove and 0  not upgraded.
Need to get 111MB of archives. After unpacking 306MB will be used.
Do you want to continue? [Y/n] Get:1 ftp://172.16.19.2 testing/main imlib-base 1.9.11-3 [109kB]


It looks like the tasksel called from
/usr/lib/fai/nfsroot/sbin/install_packages lacks a return on its stdin
(unfortunately tasksel does not accept a -y option. Anybody candidate to
add it ?).

Here is a patch to /usr/lib/fai/nfsroot/sbin/install_packages:
--- /usr/lib/fai/nfsroot/sbin/install_packages~ Fri Nov 16 17:56:16 2001
+++ /usr/lib/fai/nfsroot/sbin/install_packages  Tue Jan  8 10:44:27 2002
@@ -95,8 +95,12 @@
     grep { $misspelt{$_} or $newlist .= "$_ "} @{$list{install}};
     $packlist = $newlist;
   }
 
+  if ($type eq "taskinst") {
+    $rootcmd = 'yes "" | ' . $rootcmd;
+  }
+
   execute("$rootcmd $command{$type} $packlist") if $packlist;
 }
 
 # remove prelaoded files


Hey, there is a typo in the last comment... :-)

-- 
    Ronan KERYELL              |\/
    Labo Informatique Télécom  |/)  Tel:    (+33|0) 2.29.00.14.15
    ENST Bretagne, BP832       K    Fax:    (+33|0) 2.29.00.12.82
    29285 PLOUZANE CEDEX       |\   E-mail: Ronan.Keryell at enst-bretagne.fr
    FRANCE                     | \  http://www-info.enst-bretagne.fr/~keryell



More information about the linux-fai mailing list