Re: fai-make-nfsroot fails to download certain packages
Hi Thomas, The config is likely outdated as it was first tried something like 10-15 years ago. This is something I've inherited and trying to find my ways around. I've made some progress and now seeing the following when installing Debian 9 on a slave client: Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done Begin: Running /scripts/local premount ... [ 8.438160] Btrfs loaded, crc32c=crc32c generic Scanning for Btrfs filesystems done. Warning: fsck not present, so skipping root file system Usage: mount [-r] [-w] [-o options] [-t type] [-f] [-i] [-n] device directory done. Begin: Running /scripts/local-bottom ... /scripts/local-bottom/mdadm: 2: /scripts/local-bottom/mdadm: rm: not found done. Begin: Running /scripts/init-bottom ... mount: No such file or directory mount: invalid option -- done. mount: No such file or directory run-init: current directory on the same filesystem as the root: error 0 Target filesystem doesn't have requested /sbin/init. run-init: current directory on the same filesystem as the root: error 0 (repeated 4 more times) No init found. Try passing init= bootarg. (initramfs) Any help would be greatly appreciated. Regards, Adam On 30/08/2022 21:34, Thomas Lange wrote: On Tue, 30 Aug 2022 18:43:11 +0100, Adam Weremczuk said: > wget -O fai-project.gpg > https://fai-project.org/download/2BF8D9FE074BCDE4.gpg; sudo cp > ERROR: The certificate of ‘fai-project.org’ is not trusted. > ERROR: The certificate of ‘fai-project.org’ has expired. I have no problem using wget and downloading this file on a bullseye machine. Maybe your wget version is too old? > WARNING: These unknown packages are removed from the installation list: > module-init-tools console-tools grub module-init-tools was removed from /etc/fai/NFSROOT in FAI 5.1. console-tools was removed in 2014 from /etc/fai/NFSROOT. It seems, you have an old config. > *** > Lots of: > insserv: warning: script 'rcS.distrib' missing LSB tags and overrides Just ignore these.
Re: fai-make-nfsroot fails to download certain packages
> On Tue, 30 Aug 2022 18:43:11 +0100, Adam Weremczuk > said: > wget -O fai-project.gpg > https://fai-project.org/download/2BF8D9FE074BCDE4.gpg; sudo cp > ERROR: The certificate of ‘fai-project.org’ is not trusted. > ERROR: The certificate of ‘fai-project.org’ has expired. I have no problem using wget and downloading this file on a bullseye machine. Maybe your wget version is too old? > WARNING: These unknown packages are removed from the installation list: > module-init-tools console-tools grub module-init-tools was removed from /etc/fai/NFSROOT in FAI 5.1. console-tools was removed in 2014 from /etc/fai/NFSROOT. It seems, you have an old config. > *** > Lots of: > insserv: warning: script 'rcS.distrib' missing LSB tags and overrides Just ignore these. -- regards Thomas
Re: fai-make-nfsroot fails to download certain packages
Hi Thomas, Thank you for the hint. Taking apt-cacher out of equation has helped indeed and I no longer see package downloads failing. Some new issues running fai-make-nfsroot: *** W: GPG error: http://fai-project.org/download stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2BF8D9FE074BCDE4 W: The repository 'http://fai-project.org/download stretch InRelease' is not signed. gpg -a --recv-keys 2BF8D9FE074BCDE4; gpg -a --export 2BF8D9FE074BCDE4 | apt-key add - gpg: directory '/root/.gnupg' created gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: keyserver receive failed: Server indicated a failure gpg: WARNING: nothing exported gpg: no valid OpenPGP data found. wget -O fai-project.gpg https://fai-project.org/download/2BF8D9FE074BCDE4.gpg; sudo cp fai-project.gpg /etc/apt/trusted.gpg.d/ --2022-08-30 11:43:28-- https://fai-project.org/download/2BF8D9FE074BCDE4.gpg Resolving fai-project.org (fai-project.org)... 134.95.9.240 Connecting to fai-project.org (fai-project.org)|134.95.9.240|:443... connected. ERROR: The certificate of ‘fai-project.org’ is not trusted. ERROR: The certificate of ‘fai-project.org’ has expired. *** WARNING: These unknown packages are removed from the installation list: module-init-tools console-tools grub *** W: Possible missing firmware /lib/firmware/tigon/tg3_tso5.bin for module tg3 W: Possible missing firmware /lib/firmware/tigon/tg3_tso.bin for module tg3 W: Possible missing firmware /lib/firmware/tigon/tg3.bin for module tg3 W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. W: mkconf: MD subsystem is not loaded, thus I cannot scan for arrays. W: mdadm: failed to auto-generate temporary mdadm.conf file. *** Lots of: insserv: warning: script 'rcS.distrib' missing LSB tags and overrides *** Creating config file /etc/default/grub with new version grub-probe: error: cannot find a device for / (is /dev mounted?). grub-probe: error: cannot find a device for /boot (is /dev mounted?). grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?). *** ERROR: Some essential pacakges are missing. <--- TYPO An error occured during fai-make-nfsroot. Please fix the error or try fai-make-nfsroot -v *** Possibly tomorrow I'll see if I can get a bootable client installed despite the warnings and errors. Regards, Adam On 25/08/2022 19:56, Thomas Lange wrote: Hi Adam, please try to write ASCII mails, yours is a HTML only mail. Concering your problem, you should use a official mirror and not a local apt-cacher and check if the problem disappears.
Re: fai-make-nfsroot fails to download certain packages
Hi Adam, please try to write ASCII mails, yours is a HTML only mail. Concering your problem, you should use a official mirror and not a local apt-cacher and check if the problem disappears. -- regards Thomas
fai-make-nfsroot fails to download certain packages
Hello, *MY ENVIRONMENT:* *uname -a* Linux pubwww3 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux *cat /etc/debian_version* 9.2 *dpkg -l | grep fai* ii fai-client 5.3.6 all Fully Automatic Installation client package ii fai-doc 5.3.6 all Documentation for FAI ii fai-server 5.3.6 all Fully Automatic Installation server package *cat /etc/apt/sources.list* deb http://ftp.uk.debian.org/debian stretch main contrib non-free deb-src http://ftp.uk.debian.org/debian stretch main contrib non-free deb http://security.debian.org/ stretch/updates main contrib non-free deb-src http://security.debian.org/ stretch/updates main contrib non-free # For MegaRAID SAS utilities deb http://hwraid.le-vert.net/debian stretch main *apt update* Hit:1 http://security.debian.org stretch/updates InRelease Ign:2 http://ftp.uk.debian.org/debian stretch InRelease Ign:3 http://hwraid.le-vert.net/debian stretch InRelease Hit:4 http://ftp.uk.debian.org/debian stretch Release Hit:5 http://hwraid.le-vert.net/debian stretch Release Reading package lists... Done Building dependency tree Reading state information... Done 381 packages can be upgraded. Run 'apt list --upgradable' to see them. */usr/share/apt-cacher/apt-cacher-import.pl -l /var/cache/apt/archives* Importing from /var/cache/apt/archives Symlinking package files from /var/cache/apt/archives to /var/cache/apt-cacher /var/cache/apt-cacher/headers/acl_2.2.52-2_amd64.deb already exists: skipping (...) Done. 0 files imported -- *MY ERRORS: * *fai-make-nfsroot -v -f* Using configuration files from /etc/fai Creating FAI nfsroot in /srv/fai/nfsroot Creating base system using debootstrap version 1.0.89 Calling debootstrap --exclude=info --include=aptitude stretch /srv/fai/nfsroot http://localhost:3142/debian I: Retrieving InRelease I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature I: Valid Release signature (key id 067E3C456BAE240ACEE88F6FEF0F382A1A7B6500) I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Found additional required dependencies: libaudit-common libaudit1 libbz2-1.0 libcap-ng0 libdb5.3 libdebconfclient0 libgcrypt20 libgpg-error0 liblz4-1 libncursesw5 libsemanage-common libsemanage1 libsystemd0 libudev1 libustr-1.0-1 I: Found additional base dependencies: aptitude-common dmsetup gnupg-agent libapparmor1 libassuan0 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0 libbsd0 libcap2 libcryptsetup4 libcwidget3v5 libdevmapper1.02.1 libdns-export162 libelf1 libfastjson4 libffi6 libgmp10 libgnutls30 libhogweed4 libidn11 libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libksba8 liblocale-gettext-perl liblognorm5 libmnl0 libncurses5 libnetfilter-conntrack3 libnettle6 libnfnetlink0 libnpth0 libp11-kit0 libpsl5 libseccomp2 libsigc++-2.0-0v5 libsqlite3-0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libunistring0 libxtables12 pinentry-curses xxd I: Checking component main on http://localhost:3142/debian... I: Retrieving libacl1 2.2.52-3+b1 W: Couldn't download package libacl1 (ver 2.2.52-3+b1 arch amd64) I: Retrieving adduser 3.115 W: Couldn't download package adduser (ver 3.115 arch all) I: Retrieving libapparmor1 2.11.0-3+deb9u2 I: Validating libapparmor1 2.11.0-3+deb9u2 I: Retrieving apt 1.4.10 I: Validating apt 1.4.10 (...) E: Couldn't download packages: libacl1 adduser aptitude aptitude-common base-passwd bash libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0 bsdmainutils libbz2-1.0 libdebconfclient0 coreutils cpio libcwidget3v5 dash libdb5.3 debconf debconf-i18n debianutils dmidecode libelf1 findutils libgdbm3 grep gzip hostname ifupdown init init-system-helpers iptables libip4tc0 libip6tc0 libiptc0 libxtables12 kmod libkmod2 libassuan0 libbsd0 libcap-ng0 libestr0 libfastjson4 libffi6 libgpg-error0 libidn2-0 libksba8 liblocale-gettext-perl liblogging-stdlog0 liblognorm5 libmnl0 libnetfilter-conntrack3 libnfnetlink0 libpipeline1 libpsl5 libselinux1 libsemanage-common libsemanage1 libsepol1 libsigc++-2.0-0v5 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libunistring0 logrotate lsb-base liblz4-1 mawk nano netbase libhogweed4 libnettle6 libnewt0.52 whiptail libnpth0 libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime libpam0g libpopt0 libreadline7 readline-common rsyslog sed libslang2 sysvinit-utils tar tasksel tasksel-data libustr-1.0-1 liblzma5 Log file written to /var/log/fai/fai-make-nfsroot.log -- Has it got anything to do with my FAI master distro being behind (9.2 <
Re: Resend[2]: fai-make-nfsroot fails for FAI 5.7.4 (Debian 10/Buster)
> Thomas Lange [mailto:la...@informatik.uni-koeln.de] wrote: You are mixing buster and stretch release, because FAI 5.8.1 includes default config for stretch and I guess you have only changed it to buster in one location. Please adjust your /etc/fai/apt/sources.list to also use buster. ^^^=> do not forget this Thanks for pointing that out, I thought I had updated those files. I am now able to build an NFSROOT.
RE: [External] Re: Resend[2]: fai-make-nfsroot fails for FAI 5.7.4 (Debian 10/Buster)
> On Thu, 21 Feb 2019 09:58:47 -0700, Bob A > said: > Two files attached. One is using the standard Debian archive the other is > the local proxy I have set-up. >From the logs: Calling debootstrap --exclude=wget buster /srv/fai/nfsroot http://deb.debian.org/debian . . . Upgrading /srv/fai/nfsroot Get:2 http://10.4.0.3:/security stretch/updates InRelease [94.3 kB] Get:4 http://10.4.0.3:/debian stretch Release [118 kB] Get:6 http://10.4.0.3:/debian stretch Release.gpg [2434 B] You are mixing buster and stretch release, because FAI 5.8.1 includes default config for stretch and I guess you have only changed it to buster in one location. Please adjust your /etc/fai/apt/sources.list to also use buster. ^^^=> do not forget this -- regards Thomas
Re: Resend[2]: fai-make-nfsroot fails for FAI 5.7.4 (Debian 10/Buster)
Hi Bob, can you sent me the log file of fai-make-nfsroot -v? > E: Unable to correct problems, you have held broken packages. Maybe your package mirror is broken? > I tried adding dracut-core, fai-client, and fai-setup-storage to /etc/fai/NFSROOT but that did not help (in the FULL section). As best as I can tell, the previously mentioned packages exist. That's not needed normally. > Also, NFSROOT is calling for emacs25-nox, is it really needed in the NFSROOT? No, you can remove this from /etc/fai/NFSROOT is you like. -- regards Thomas
Resend[2]: fai-make-nfsroot fails for FAI 5.7.4 (Debian 10/Buster)
Honeywell Internal I'm trying to build my NFSROOT for the first time and am getting a failure (Debian 10 "Buster"): Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: dracut-config-generic : Depends: dracut-core but it is not going to be installed dracut-network : Depends: dracut-core but it is not going to be installed fai-nfsroot : Depends: fai-client (>= 5.2) but it is not going to be installed Depends: fai-setup-storage but it is not going to be installed E: Unable to correct problems, you have held broken packages. I tried adding dracut-core, fai-client, and fai-setup-storage to /etc/fai/NFSROOT but that did not help (in the FULL section). As best as I can tell, the previously mentioned packages exist. As best as I can tell, the kernel I am using is the same as I am requesting in the NFSROOT (https://lists.uni-koeln.de/pipermail/linux-fai/2013-February/009911.html) Also, NFSROOT is calling for emacs25-nox, is it really needed in the NFSROOT?
Re: fai-make-nfsroot fails
On Thu, 14 Feb 2013 16:37:38 +0100, Michael Pfeiffer pfeif...@iis.fhg.de said: @Thomas: I don't know how to get the fai-make-nfsroot to use the dracut package 020-2. Where would I define that? (I could chroot /srv/fai/nfsroot aptitude... but it looks like that is overwritten anyhow when I call fai-make-nfsroot the next time.) You do not need to chroot. Check /etc/fai/apt/sources.list I'm really confused about a bunch of things regarding the configuration for the nfsroot setup. Which sources should be used for a setup on ubuntu 12.04 LTS (and minimum trouble ;)? Use Debian if you want to have minimum trouble. Right now, my /etc/apt/sources.list contains the ubuntu precise sources that were here before my attempt to fai, and fai-project.org/download wheezy koeln. Would it be smarter to use deb http://ppa.launchpad.net/fai/ubuntu lucid main ? Do not mix /etc/apt/sources.list and /etc/fai/apt/sources.list. FAI uses the later for building the nfsroot. -- regards Thomas
fai-make-nfsroot fails
Hi, I am trying to set up fai (4.0.5) for Ubuntu 12.04, first of all trying to build the nfsroot... but I'm kind of stuck here. Could someone give me a hint here? I'm trying to build the nfsroot on a virtual machine, also running Ubuntu12.04. If you need further information, like my NFSROOT or nfsroot.conf or sources.list or anything else, let me know. I copied what I think may be valuable information from the fai-make-nfsroot.log below. Kind regards, Michael The fai-make-nfsroot.log looks ok for the first 1400 lines, but then: 1403 The following packages have unmet dependencies: 1404 console-tools : Conflicts: console-utilities which is a virtual package. 1405 Conflicts: open which is a virtual package. 1406 kbd : Conflicts: console-utilities which is a virtual package. 1407Conflicts: open which is a virtual package. 1408 The following actions will resolve these dependencies: 1409 1410 Remove the following packages: 1411 1) console-setup 1412 2) kbd 1413 3) ubuntu-minimal and then, another 300 lines later: 1708 dracut: Generating /boot/initramfs-3.2.0-37-generic-pae.img^M 1709 E: Directories consolefonts, consoletrans, keymaps, unimaps not found. Please inform us about the issue including your OS name and version.^M 1710 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory^M the last line is repeated some 20 times then, occasionally find jumps in and reports: 1717 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory^M which is strange, because the directory (as well as the modules.dep file, for that matter) exists (on the host - not inside the nfsroot!) At the end, I get 1894 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1895 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1896 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1897 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1898 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1899 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory 1900 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory 1901 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory 1902 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory 1903 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1904 F: Failed to install wget 1905 dpkg: error processing dracut (--configure): 1906 subprocess installed post-installation script returned error exit status 1 1907 dpkg: dependency problems prevent configuration of dracut-network: 1908 dracut-network depends on dracut; however: 1909 Package dracut is not configured yet. 1910 dpkg: error processing dracut-network (--configure): 1911 dependency problems - leaving unconfigured 1912 Errors were encountered while processing: 1913 dracut 1914 dracut-network 1915 ERROR: 256 256 1916 ERROR: chroot /srv/fai/nfsroot dpkg --configure --pending return code 1 1917 install_packages: executing chroot /srv/fai/nfsroot dpkg -C 1918 The following packages have been unpacked but not yet configured. 1919 They must be configured using dpkg --configure or the configure 1920 menu option in dselect for them to work: 1921 dracut-network A new initramfs infrastucture 1922 1923 The following packages are only half configured, probably due to problems 1924 configuring them the first time. The configuration should be retried using 1925 dpkg --configure package or the configure menu option in dselect: 1926 dracut A new initramfs infrastructure 1927 1928 install_packages: executing chroot /srv/fai/nfsroot apt-get clean 1929 2 errors during executing of commands
Re: fai-make-nfsroot fails
Hi Michael, I remmember that there is an issue if you have different kernel versions and use dracut. From my notes when I came across this: * The package dracut needs a patch for /usr/lib/dracut/dracut-functions.sh, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685004, otherwise all modules are missing if the kernel version in the nfsroot and on mucha differ. * Patch is applied by an nfsroot-hook script named /etc/fai/nfsroot-hooks/15-dracut-patch. See below for the file contents. It runs when the nfsroot is being created. Also, I did some clean-up in /etc/fai/NFSROOT by commenting out conflicting lines. I hope the info helps, w.w. snip - #!/bin/bash # # 15-dracut-patch # # patch dracut's dracut-functions.sh according to debian bug 685004 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685004 # # author : W. Walkowiak, 2012-11-07 # changed: # #== # [ $verbose ] echo Running nfsroot-hooks/15-dracut-patch now # patch /usr/lib/dracut/dracut-functions.sh { cd $NFSROOT/usr/lib/dracut cat dracut_patch.tmp EOF --- dracut-functions.sh.orig2012-11-07 21:10:29.0 +0100 +++ dracut-functions.sh 2012-11-07 21:13:27.484503109 +0100 @@ -1182,7 +1182,7 @@ local _moddirname=${srcmods%%/lib/modules/*} if [[ -f $initdir/.kernelmodseen/lazylist ]]; then -xargs modprobe -a ${_moddirname+-d ${_moddirname}/} --ignore-install --show-depends \ +xargs modprobe -a ${_moddirname+-d ${_moddirname}/} --set-version $kernel --ignore-install --show-depends \ $initdir/.kernelmodseen/lazylist 2/dev/null \ | sort -u \ | while read _cmd _modpath _options; do EOF } # run dpkg-reconfigure $ROOTCMD dpkg-reconfigure dracut # copy initrd and vmlinuz to $TFTPROOT { cd $TFTPROOT cp -p $NFSROOT/boot/vmlinu?-* $TFTPROOT cp -p $NFSROOT/boot/initrd.img-* $TFTPROOT } -- snip -- On Wed, 6 Feb 2013, Michael Pfeiffer wrote: Hi, I am trying to set up fai (4.0.5) for Ubuntu 12.04, first of all trying to build the nfsroot... but I'm kind of stuck here. Could someone give me a hint here? I'm trying to build the nfsroot on a virtual machine, also running Ubuntu12.04. If you need further information, like my NFSROOT or nfsroot.conf or sources.list or anything else, let me know. I copied what I think may be valuable information from the fai-make-nfsroot.log below. Kind regards, Michael The fai-make-nfsroot.log looks ok for the first 1400 lines, but then: 1403 The following packages have unmet dependencies: 1404 console-tools : Conflicts: console-utilities which is a virtual package. 1405 Conflicts: open which is a virtual package. 1406 kbd : Conflicts: console-utilities which is a virtual package. 1407Conflicts: open which is a virtual package. 1408 The following actions will resolve these dependencies: 1409 1410 Remove the following packages: 1411 1) console-setup 1412 2) kbd 1413 3) ubuntu-minimal and then, another 300 lines later: 1708 dracut: Generating /boot/initramfs-3.2.0-37-generic-pae.img^M 1709 E: Directories consolefonts, consoletrans, keymaps, unimaps not found. Please inform us about the issue including your OS name and version.^M 1710 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory^M the last line is repeated some 20 times then, occasionally find jumps in and reports: 1717 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory^M which is strange, because the directory (as well as the modules.dep file, for that matter) exists (on the host - not inside the nfsroot!) At the end, I get 1894 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1895 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1896 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1897 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1898 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1899 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory 1900 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory 1901 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory 1902 find: `/lib/modules/3.2.0-37-generic-pae/': No such file or directory 1903 E: FATAL: Could not load /lib/modules/3.2.0-37-generic-pae/modules.dep: No such file or directory 1904 F: Failed to install wget 1905 dpkg: error processing dracut (--configure): 1906 subprocess installed post-installation script returned error exit status 1 1907 dpkg: dependency problems prevent configuration of dracut-network: 1908 dracut-network depends on dracut; however: 1909 Package