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

Bug#678694: preseed_fetch fails with relative url

Package: preseed
Severity: normal
Tags: d-i

Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   Trying to install Debian Wheezy in a VirtualBox image using preseeding and
   trying to use the following line:
   d-i preseed/late_command string preseed_fetch \
   /scripts/late_command.sh /root/late_command.sh

   * What exactly did you do (or not do) that was effective (or
     - Create a VirtualBox (VB) image
     - Assign debian-wheezy-DI-a1-amd64-businesscard.iso to the CDROM
     - Start the VB image and when presented with d-i start screen,
       press TAB to add "auto=true url=my.server.com DEBCONF_DEBUG=5" so it uses my
       preseed file from http://my.server.com/d-i/wheezy/./preseed.cfg 
       I only added DEBCONF_DEBUG=5 when deciding to report a bug,
       without it, it also failed.
     - At the very end (after GRUB install) I get an error msg saying 
       'Execution of preseeded command "preseed_fetch
       /scripts/late_command.sh /root/late_command.sh" failed with exit
       code 2.'
       Going to Ctl+Alt+F4, I see the error "can't open
   * What was the outcome of this action?
   The requested file was not downloaded to the requested location.

   Relevant section of /var/log/installer/syslog:

   Jun 23 17:21:03 debconf: --> GET preseed/late_command
   Jun 23 17:21:03 debconf: <-- 0 preseed_fetch /scripts/late_command.sh
   Jun 23 17:21:04 preseed: running preseed command
   preseed/late_command: preseed_fetch /scripts/late_command.sh
   Jun 23 17:21:04 log-output: /bin/fetch-url:
   Jun 23 17:21:04 log-output: .:
   Jun 23 17:21:04 log-output: line 33:
   Jun 23 17:21:04 log-output: can't open
   Jun 23 17:21:04 log-output:
   Jun 23 17:21:04 debconf: --> SUBST preseed/command_failed COMMAND
   preseed_fetch /scripts/late_command.sh /root/late_command.sh
   Jun 23 17:21:04 debconf: Adding [COMMAND] -> [preseed_fetch
   /scripts/late_command.sh /root/late_command.sh]
   Jun 23 17:21:04 debconf: <-- 0
   Jun 23 17:21:04 debconf: --> SUBST preseed/command_failed CODE 2
   Jun 23 17:21:04 debconf: Adding [CODE] -> [2]
   Jun 23 17:21:04 debconf: <-- 0
   Jun 23 17:21:04 debconf: --> INPUT critical preseed/command_failed
   Jun 23 17:21:04 debconf: <-- 0 question will be asked

   * What outcome did you expect instead?
   That the file was downloaded to the specified location (and the next
   step would be to execute it).

   This bug may have similarities with bug #573138, but when trying to
   use preseed/include it failed to retrieve that file with the
   following error:
   "The file needed for preconfiguration could not be retrieved from
   http://my.server.com/d-i/wheezy/./core-pkgs.cfg. The installation
   will proceed in non-automated mode."
   Ctl+Alt+F4 showed the following line (ie no error msg):
   "preseed: successfully loaded preseed file from

   When loading the various urls in my browser, they all loaded fine.
   I haven't tried with absolute urls, since that would 'destroy' the
   portability of my preseed file(s).

   My preseed.cfg file:
   #### Contents of the preconfiguration file (for wheezy)
   ### Localization

   # Preseeding only locale sets language, country and locale.
   #d-i debian-installer/locale string en_US

   # The values can also be preseeded individually for greater
   # flexibility.
   d-i debian-installer/language string en
   d-i debian-installer/country string NL
   d-i debian-installer/locale string en_US.UTF-8
   d-i console-keymaps-at/keymap select us
   d-i keyboard-configuration/xkb-keymap select us
   # Optionally specify additional locales to be generated.
   #d-i localechooser/supported-locales en_US.UTF-8, nl_NL.UTF-8

   d-i mirror/country string nl
   d-i mirror/http/hostname string ftp.debian.org
   d-i mirror/http/directory string /debian
   d-i mirror/http/proxy string
   #d-i mirror/http/proxy seen false

   #Additional repositories
   d-i apt-setup/local0/repository string http://ftp.debian.org/debian
   sid main
   d-i apt-setup/local0/comment string Unstable repository
   d-i apt-setup/local0/source boolean false

   d-i passwd/root-password password root
   d-i passwd/root-password-again password root

   d-i passwd/user-fullname string Debian User
   d-i passwd/username string debian
   d-i passwd/user-password password debian
   d-i passwd/user-password-again password debian

   d-i partman-auto/disk string /dev/sda
   d-i partman-auto/method string regular
   d-i partman-auto/expert_recipe string \
    boot-root :: \
    8000 8000 8000 ext4 \
    $primary{ } $bootable{ } \
    method{ format } format{ } \
    use_filesystem{ } filesystem{ ext4 } \
    mountpoint{ / } . \
    100 589 -1 linux-swap \
    method{ swap } format{ } .
   d-i partman-partitioning/confirm_write_new_label boolean true
   d-i partman/choose_partition select finish
   d-i partman/confirm boolean true
   d-i partman/confirm_nooverwrite boolean true

   # Participate in the package usage survey?
   d-i	popularity-contest/participate	boolean	false

   # Choose software to install:
   tasksel	tasksel/first	multiselect	standard
   # Additional pkgs to install:
   d-i pkgsel/include string openssh-server vim htop bzip2 tmux zerofree

   # Run late_command script to set additional things up
   #d-i preseed/include string core-pkgs.cfg
   d-i preseed/late_command string preseed_fetch
   /scripts/late_command.sh /root/late_command.sh

   # Grub
   d-i grub-installer/only_debian boolean true
   d-i grub-installer/with_other_os boolean true

   # Finish
   d-i finish-install/reboot_in_progress note


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Reply to: