You are not logged in.
Pages: 1
Hello guys
initramfs.conf missing in /etc/initramfs-tools/initramfs.conf
This command
update-initramfs -u
This output
update-initramfs: Generating /boot/initrd.img-4.9.0-8-amd64
/usr/sbin/mkinitramfs: 66: .: Can't open /etc/initramfs-tools/initramfs.conf
update-initramfs: failed for /boot/initrd.img-4.9.0-8-amd64 with 2.
Offline
Are you running jessie, ascii or beowulf?
Check to see if the file is really missing or if it's there but has a permission problem
If it's missing, try reinstalling initramfs-tools.
Offline
Devuan Ascii
Reinstall opration
apt-get install --reinstall initramfs-tools
error output
update-initramfs: Generating /boot/initrd.img-4.9.0-8-amd64
/usr/sbin/mkinitramfs: 66: .: Can't open /etc/initramfs-tools/initramfs.conf
update-initramfs: failed for /boot/initrd.img-4.9.0-8-amd64 with 2.
dpkg: erro ao processar o pacote initramfs-tools (--configure):
sub-processo script post-installation instalado retornou estado de saída de erro 2
Erros foram encontrados durante o processamento de:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Last edited by w3 (2019-07-15 12:39:45)
Offline
What does this show?
ls -l /etc/initramfs-tools/
Offline
output of # ls -l /etc/initramfs-tools/
drwxr-xr-x 2 root root 4096 25.04.2017 22:00 conf.d/
-rw-r--r-- 1 root root 17 15.07.2019 06:35 modules
conf.d/ folder is empty.
output of # cat /etc/initramfs-tools/modules
lz4
lz4_compress
Last edited by w3 (2019-07-15 13:40:26)
Offline
Here's what I have in ascii:
$ ls -l /etc/initramfs-tools/
total 24
drwxr-xr-x 2 root root 4096 Apr 26 2017 conf.d
drwxr-xr-x 2 root root 4096 Apr 26 2017 hooks
-rw-r--r-- 1 root root 1107 Feb 18 2017 initramfs.conf
-rw-r--r-- 1 root root 246 Nov 10 2017 modules
drwxr-xr-x 12 root root 4096 Nov 10 2017 scripts
-rw-r--r-- 1 root root 378 Oct 27 2014 update-initramfs.conf
I recognize this as the default. Yours has been changed. I don't understand why the reinstall failed.
$ cat /etc/initramfs-tools/modules
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax: module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
Offline
any idea how I can fix this?
I did an installation using the official netinstall image of Devuan Ascii. This is my sources.list
#
# deb cdrom:[devuan_ascii_2.0.0_amd64_netinst]/ ascii main non-free
#deb cdrom:[devuan_ascii_2.0.0_amd64_netinst]/ ascii main non-free
deb http://pkgmaster.devuan.org/merged ascii main non-free contrib
#deb-src http://pkgmaster.devuan.org/merged ascii main non-free contrib
deb http://pkgmaster.devuan.org/merged ascii-security main non-free contrib
#deb-src http://pkgmaster.devuan.org/merged ascii-security main non-free contrib
deb http://pkgmaster.devuan.org/merged ascii-updates main non-free contrib
#deb-src http://pkgmaster.devuan.org/merged ascii-updates main non-free contrib
Last edited by w3 (2019-07-15 21:19:41)
Offline
Your sources.list looks good.
any idea how I can fix this?
Um, no. But let's see if we can figure out why lz4 is in modules.
Run dpkg -l | grep lz4 to see what apps are installed that have it in the name.
Then on each of those packages, run aptitude why <package> Maybe something you installed messed with those files.
Maybe also look in root's history to see if/when you edited that file.
Maybe install the debsums package and run debsums -ca to see what system files have been changed from their defaults.
Maybe 'aptitude reinstall initramfs-tools' would give you different results or other options. Try it with -s (--simulate).
Offline
error output
update-initramfs: Generating /boot/initrd.img-4.9.0-8-amd64 /usr/sbin/mkinitramfs: 66: .: Can't open /etc/initramfs-tools/initramfs.conf update-initramfs: failed for /boot/initrd.img-4.9.0-8-amd64 with 2. dpkg: erro ao processar o pacote initramfs-tools (--configure): sub-processo script post-installation instalado retornou estado de saída de erro 2 Erros foram encontrados durante o processamento de: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
You can't reinstall the package because it rebuilds the initramfs as part of the installation process and it can't do that because you have no initramfs.conf
So you'll have to unpack the .deb and copy the file over manually:
cd ~/Downloads
apt download initramfs-tools
ar x initramfs-tools*.deb
tar xf data.tar.xz
# cp etc/initramfs-tools/update-initramfs.conf /etc/initramfs-tools
# update-initramfs -u -k all
Brianna Ghey — Rest In Power
Offline
Pages: 1