Your message dated Sat, 03 Jun 2023 01:03:35 +0200 with message-id <5371334.Sb9uPGUboI@bagend> and subject line Re: Bug#678694: preseed_fetch fails with relative url has caused the Debian Bug report #678694, regarding preseed_fetch fails with relative url 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 owner@bugs.debian.org immediately.) -- 678694: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678694 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: preseed_fetch fails with relative url
- From: Diederik de Haas <didi.debian@cknow.org>
- Date: Sat, 23 Jun 2012 21:04:05 +0200
- Message-id: <20120623190405.7248.46233.reportbug@bagend.home.cknow.org>
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 ineffective)? - Create a VirtualBox (VB) image - Assign debian-wheezy-DI-a1-amd64-businesscard.iso to the CDROM drive - 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 '/usr/lib/fetch-url//./scrips/late_command.sh'" * 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 /root/late_command.sh Jun 23 17:21:04 preseed: running preseed command preseed/late_command: preseed_fetch /scripts/late_command.sh /root/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 '/usr/lib/fetch-url//./scripts/late_command.sh' 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 http://my.server.com/d-i/wheezy/./preseed.cfg" 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 http://192.168.1.5:3142 #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
--- End Message ---
--- Begin Message ---
- To: 678694-done@bugs.debian.org
- Subject: Re: Bug#678694: preseed_fetch fails with relative url
- From: Diederik de Haas <didi.debian@cknow.org>
- Date: Sat, 03 Jun 2023 01:03:35 +0200
- Message-id: <5371334.Sb9uPGUboI@bagend>
- In-reply-to: <10079712.nUPlyArG6x@bagend>
On 13 May 2022 14:05:15 +0200 Diederik de Haas <didi.debian@cknow.org> wrote: > So it appears that I didn't fully/properly understand how the preseed_fetch > functionality works and/or how it is supposed to be used and therefor did it > incorrectly, causing it to fail for me. IOW: PEBKAC issue, thus closingAttachment: signature.asc
Description: This is a digitally signed message part.
--- End Message ---