Your message dated Sun, 05 Aug 2012 10:47:09 +0000 with message-id <[email protected]> and subject line Bug#503359: fixed in di-netboot-assistant 0.37 has caused the Debian Bug report #503359, regarding di-netboot-assistant should be able to run as a non-privileged user to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 503359: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503359 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: di-netbot-assistant Version: 0.36 Severity: wishlist Tags: patch di-netboot-assistant should be able to run as a non-privileged user. * di-netboot-assistant downloads and manipulates data from the network * the tftproot does not actually need to be populated by the superuser * it's often nice to build up a tftproot (or more than one!) on a comfortable machine as a non-privileged user and then rsync it to a canonical tftproot. The attached patch adds a couple of config variables that can be overridden in the config file, and allows the DI_NETBOOT_ASSISTANT_CONFIG environment variable to override the default /etc/di-netboot-assistant/di-netboot-assistant.conf configuration variable. It works for me if a point it at an alternate config file that looks like this: ------------ TFTP_ROOT=~/.di-netboot-assistant/tftpboot DL_CACHE=~/.di-netboot-assistant/cache STATUS_LIB=~/.di-netboot-assistant/lib MIRROR_REGEXPS="s=://ftp.debian.org/=://ftp.us.debian.org/debian/=" ------------- and of course i have to make the subdirectories before the initial invocation: mkdir -p ~/.di-netboot-assistant/{tftpboot,cache,lib} But maybe these directories should be created by the invoker automatically anyway if they don't exist? Thanks for providing this handy tool, --dkg PS the patch also drops an unneeded trailing slash from the default value for DL_CACHEdiff -ruN di-netboot-assistant-0.36/debian/changelog di-netboot-assistant-0.36.1/debian/changelog --- di-netboot-assistant-0.36/debian/changelog 2008-07-23 02:38:08.000000000 -0400 +++ di-netboot-assistant-0.36.1/debian/changelog 2008-10-24 20:58:12.000000000 -0400 @@ -1,3 +1,9 @@ +di-netboot-assistant (0.36.1) experimental; urgency=low + + * allowing di-netboot-assistant to be run by a non-privileged user. + + -- Daniel Kahn Gillmor <[email protected]> Fri, 24 Oct 2008 20:58:12 -0400 + di-netboot-assistant (0.36) unstable; urgency=low * Implement the command rebuild-menu. diff -ruN di-netboot-assistant-0.36/usr/bin/di-netboot-assistant di-netboot-assistant-0.36.1/usr/bin/di-netboot-assistant --- di-netboot-assistant-0.36/usr/bin/di-netboot-assistant 2008-07-23 02:08:07.000000000 -0400 +++ di-netboot-assistant-0.36.1/usr/bin/di-netboot-assistant 2008-10-24 21:17:32.000000000 -0400 @@ -29,7 +29,9 @@ SYSLINUXMENU=menu.c32 SYSLINUX=/usr/lib/syslinux/ ELILO=/usr/lib/elilo/ -DL_CACHE=/var/cache/di-netboot-assistant/ +DL_CACHE=/var/cache/di-netboot-assistant +STATUS_LIB=/var/lib/di-netboot-assistant +CONFIG_DIR=/etc/di-netboot-assistant TFTP_ROOT=/var/lib/tftpboot REWRITEPKGPATH='\(debian\|ubuntu\)-installer' UMASKOLD=`umask -p` @@ -37,8 +39,8 @@ #MIRROR_REGEXPS=# Not defined on purpose, so user can pass the variable umask 0022 -if [ -f /etc/di-netboot-assistant/di-netboot-assistant.conf ]; then - . /etc/di-netboot-assistant/di-netboot-assistant.conf +if [ -f "${DI_NETBOOT_ASSISTANT_CONFIG:-/etc/di-netboot-assistant/di-netboot-assistant.conf}" ]; then + . "${DI_NETBOOT_ASSISTANT_CONFIG:-/etc/di-netboot-assistant/di-netboot-assistant.conf}" fi # Declare some functions @@ -113,16 +115,16 @@ [ ! -d "pxelinux.cfg" ] && mkdir "pxelinux.cfg" echo "I: Building PXE-Linux' top-menu" - print_do-not-edit_header "/etc/di-netboot-assistant/pxelinux.HEAD" > pxelinux.cfg/default + print_do-not-edit_header "${CONFIG_DIR}/pxelinux.HEAD" > pxelinux.cfg/default if [ -n "$(find "$TFTP_ROOT/debian-installer" -type d -name pxelinux.cfg.serial-9600 2>/dev/null)" ]; then cp pxelinux.cfg/default pxelinux.cfg/default.serial-9600 else [ -f "pxelinux.cfg/default.serial-9600" ] && rm pxelinux.cfg/default.serial-9600 fi - [ -f /etc/di-netboot-assistant/pxelinux.HEAD ] && grep -Ev "^##" /etc/di-netboot-assistant/pxelinux.HEAD >> pxelinux.cfg/default + [ -f ${CONFIG_DIR}/pxelinux.HEAD ] && grep -Ev "^##" ${CONFIG_DIR}/pxelinux.HEAD >> pxelinux.cfg/default i=0 - for x in $(ls /var/lib/di-netboot-assistant/*.pxelinux.menu.fragment 2>/dev/null ); do + for x in $(ls "${STATUS_LIB}/"*.pxelinux.menu.fragment 2>/dev/null ); do i=$(($i + 1)) grep -Ev "^##" $x >> pxelinux.cfg/default echo "" >> pxelinux.cfg/default @@ -132,8 +134,8 @@ i=0 if [ -f "pxelinux.cfg/default.serial-9600" ]; then i=$(($i + 1)) - [ -f /etc/di-netboot-assistant/pxelinux.HEAD ] && cat /etc/di-netboot-assistant/pxelinux.HEAD >> pxelinux.cfg/default.serial-9600 - for x in /var/lib/di-netboot-assistant/*pxelinux.menu.serial-9600.fragment ; do + [ -f ${CONFIG_DIR}/pxelinux.HEAD ] && cat ${CONFIG_DIR}/pxelinux.HEAD >> pxelinux.cfg/default.serial-9600 + for x in "${STATUS_LIB}/"*pxelinux.menu.serial-9600.fragment ; do grep -Ev "^##" "$x" >> pxelinux.cfg/default.serial-9600 echo "" >> pxelinux.cfg/default.serial-9600 done @@ -153,11 +155,11 @@ update_elilo_menu() { echo "I: Building Elilo's top-menu" - print_do-not-edit_header "/etc/di-netboot-assistant/elilo.HEAD" > elilo.conf - [ -f /etc/di-netboot-assistant/elilo.HEAD ] && grep -Ev "^##" /etc/di-netboot-assistant/elilo.HEAD >> elilo.conf + print_do-not-edit_header "${CONFIG_DIR}/elilo.HEAD" > elilo.conf + [ -f ${CONFIG_DIR}/elilo.HEAD ] && grep -Ev "^##" "${CONFIG_DIR}/elilo.HEAD" >> elilo.conf i=0 - for x in $(ls /var/lib/di-netboot-assistant/*.elilo.conf.fragment 2>/dev/null ); do + for x in $(ls "${STATUS_LIB}/"*.elilo.conf.fragment 2>/dev/null ); do i=$(($i + 1)) grep -Ev "^##" $x >> elilo.conf echo "" >> elilo.conf @@ -237,7 +239,7 @@ purge_repos() { [ "$DEBUG" ] && set -x del_repo="$1" - current_repos="$(find /var/lib/di-netboot-assistant/ -name $del_repo--\*.conf | sed -e 's/^.*--//' -e 's/\.conf//')" + current_repos="$(find "${STATUS_LIB}/" -name $del_repo--\*.conf | sed -e 's/^.*--//' -e 's/\.conf//')" if [ "$(echo $ARCH | grep -E "\<all\>")" ]; then archs="$current_repos" @@ -246,8 +248,8 @@ fi for a in $archs ; do - if [ -f "/var/lib/di-netboot-assistant/$del_repo--$a.conf" ]; then - purge_repo "/var/lib/di-netboot-assistant/$del_repo--$a.conf" + if [ -f "${STATUS_LIB}/$del_repo--$a.conf" ]; then + purge_repo "${STATUS_LIB}/$del_repo--$a.conf" else echo "E: Repository '$del_repo' for architecture '$a' doesn't exists." 1>&2 echo "I: (current repository are: $current_repos)" 1>&2 @@ -398,7 +400,7 @@ for arch in $archs ; do echo "I: Processing $release/$arch ... " - metadatabasename="/var/lib/di-netboot-assistant/${release}--${arch}" + metadatabasename="${STATUS_LIB}/${release}--${arch}" metadatafile="$metadatabasename.conf" repo_orig="$(grep -E "^$release[[:blank:]]$arch\>" "$DISOURCELIST")" @@ -655,7 +657,7 @@ if [ $COUNT -eq 0 ]; then echo "E: No repository name was passed for '$ACTION'." 1>&2 [ ! "$OFFLINE" -a "$ACTION" = "install" ] && echo "I: Declared repositories are: $releases" 1>&2 - [ "$ACTION" = "purge" ] && echo "I: Installed repositories are: $( cd /var/lib/di-netboot-assistant/ ; ls | sed -e 's/--.*//' | sort -u | tr "\n" " " )" 1>&2 + [ "$ACTION" = "purge" ] && echo "I: Installed repositories are: $( cd "${STATUS_LIB}/" ; ls | sed -e 's/--.*//' | sort -u | tr "\n" " " )" 1>&2 echo "" 1>&2 exit 1 fi diff -ruN di-netboot-assistant-0.36/usr/share/man/man1/di-netboot-assistant.1 di-netboot-assistant-0.36.1/usr/share/man/man1/di-netboot-assistant.1 --- di-netboot-assistant-0.36/usr/share/man/man1/di-netboot-assistant.1 2008-07-22 19:57:45.000000000 -0400 +++ di-netboot-assistant-0.36.1/usr/share/man/man1/di-netboot-assistant.1 2008-10-24 21:07:48.000000000 -0400 @@ -50,6 +50,12 @@ \fB\-\-offline\fR Don't download the file (simply re\-extract and build menu) .RE +.SH "ENVIRONMENT VARIABLES" +.TP +\fBDI_NETBOOT_ASSISTANT_CONFIG\fR +By default, the di-netboot-assistant configuration is pulled from \fI/etc/di-netboot-assistant/di-netboot-assistant.conf\fR. If you set \fBDI_NETBOOT_ASSISTANT_CONFIG\fR, di-netboot-assistant will pull its configuration from the designated file instead. + +.RE .SH PROXY di-na uses wget to actually download the files. You can set the environnement variables accordingly. .SH AUTHOR
pgpzepPbwf62s.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---Source: di-netboot-assistant Source-Version: 0.37 We believe that the bug you reported is fixed in the latest version of di-netboot-assistant, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Christian Perrier <[email protected]> (supplier of updated di-netboot-assistant package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Sun, 05 Aug 2012 12:24:41 +0200 Source: di-netboot-assistant Binary: di-netboot-assistant Architecture: source all Version: 0.37 Distribution: unstable Urgency: low Maintainer: Debian Install System Team <[email protected]> Changed-By: Christian Perrier <[email protected]> Description: di-netboot-assistant - Debian-Installer netboot assistant Closes: 493418 493426 493548 493666 498206 503359 537649 576856 Changes: di-netboot-assistant (0.37) unstable; urgency=low . [ Frank Lin PIAT ] * DHCP option 210 (pathprefix="/") isn't needed anymore. (Closes:#498206) * add options di-args and target-args for boot parameters. * Improve command line argument parsing. * Implement "--alias" option. * Improve comments in di-sources.list * Improve di-netboot-assistant manpage. * allow running by a non-privileged user (Closes:#503359, Thanks to Daniel Kahn Gillmor for the patch) * Change umask to allow group writables files. * Use dpkg --print-architecture to query arch. * Display failed URL without requiring --verbose (Closes:#493418, Thanks to Chris Lamb) * Don't re-download files if checksum match (Closes:#493666, Thanks to Chris Lamb) * Output status messages to STDOUT, not STDERR (Closes:#493426, Thanks to Chris Lamb) * Default PROMPT to 0 in pxelinux.HEAD (Closes:#493548, Thanks to Chris Lamb) * TFTP: recommend tftpd-hpa|atftpd, since package tftpd isn't suitable for netboot (Closes:#537649, Thanks to Daniel Baumann). * Downgrade elilo, syslinux dependency to suggest: fetch bootloader installed images. * Fetch daily images from d-i.debian.org. Closes: #576856 . [ Colin Watson ] * Add wheezy to diSourcesDistrKeyword. * Update Ubuntu distributions in diSourcesDistrKeyword: remove EOLed edgy, feisty, gutsy, intrepid, and jaunty, and add karmic, lucid, maverick, and natty. . [ Hector Oron ] * disources.vim: add armhf architecture support * README: add armhf architecture support . [ Joey Hess ] * Update i386 daily build location. . [ Christian Perrier ] * Add myself to Uplaoders and make the package team-maintained * Bump standards to 3.9.3 Checksums-Sha1: 451131e32fe5ce2ba2c46149ca2df21f30cf1bc0 1730 di-netboot-assistant_0.37.dsc 7fee20ef54c391a8f02a67cef2ff30257f4e4b0b 35414 di-netboot-assistant_0.37.tar.gz 1682b52e22a6e8f10e407f265dd4b272fc17b9eb 36576 di-netboot-assistant_0.37_all.deb Checksums-Sha256: cabbca065fe5db8cffbd987ec31bc0236f36a4eb0093e51ac045d781e27404cb 1730 di-netboot-assistant_0.37.dsc 98ba85a603163838084086327ac915b5c16048a03b8c48da855e5eab6701c567 35414 di-netboot-assistant_0.37.tar.gz 0d4f7954f8d2c1fac7620691e1fc49dcc4fec3b80f9c185f9f53e350ff0c184b 36576 di-netboot-assistant_0.37_all.deb Files: 20989d00ef46e05f0fa4889038e1ec97 1730 utils extra di-netboot-assistant_0.37.dsc 22d56c580f979b97098fadceb7ecc861 35414 utils extra di-netboot-assistant_0.37.tar.gz 1619b2c48bf6c7ca52c9d6c0f66a927d 36576 utils extra di-netboot-assistant_0.37_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIVAwUBUB5LP4cvcCxNbiWoAQKlMhAAsCd28fT+wUFuaFJdmaytgG7YygnXp/+c MdAE5Mwhy4++YpZ4jos47YEmb+ppMj+g3H6H8L+Clxb3iRBNaxY9R1mSPGbiVpOl 0Tlvr5YPdBDSaT9F+fah19r5ZQhEz64IVgiD7WghQ5YZnJcQjWTkTljFpVsHJb8F hrgjbAGmvRGQzLkJ8Hi0hElxjtmwfGQgFvNS//wehTjuPF0G+X+m92QbOvOg4Jzn 00cgGZxHVgNIC6h+WrvIR7IkWgKsdaKxRNXfDXiV+xnSgx4/0Eg2O2btswAmYyCY +5vGopjQA4+XONk/PAt6IRDONQFwZCoPFwYiXf2N1IRAPVYekfDdmX+IIN4B1dP5 G8i4ZQjbsQ+7g7aNcXeRl0JV0tbggkRRKoGiMar2J7FLCd9NOEFqp0wK6JO5s3hO PwQM894NWeU+dZwrcSf9IBlFrohCFV5pQtUCKfqWxFWXq5+4h5hA8wNBzMtHkl7D znG3+6Q/H14CUXx1nCLnA8C7OPNHdj4aiHy93y9o7eyrVIfxcY2jt+51LOtz5jr7 W0kORUQelSpmqEXu6AqTiLzTvpxr3nYtLQ8KnGNK9qh4Ig4EIBlAqoYzpe0FkSAa Ugwp6QVrbW+pIqE8AFyvTgveJ0gy6yInacqfVrI1dbzsR3E+Xonn1eXPN3CI5P3S AU5k8BHqdS8= =Sply -----END PGP SIGNATURE-----
--- End Message ---

