/proc/modules error when trying to install mate with preseed

Help with issues regarding installation of Debian

/proc/modules error when trying to install mate with preseed

Postby kerryhall » 2019-10-05 00:48

I have been automating dozens of Debian installs for awhile now using a preseed command as follows (or similar):

Code: Select all
d-i preseed/late_command string \
sed -i '/cdrom/d' /target/etc/apt/sources.list;\
echo "kerry ALL=(ALL:ALL) NOPASSWD:ALL" >> /target/etc/sudoers;\
cp /cdrom/playbooks.tar.gz /target/home/kerry;\
tar xzf /target/home/kerry/playbooks.tar.gz -C /target/home/kerry;\
chroot /target mkdir /dev/shm;\
chroot /target mount -t tmpfs none /dev/shm;\
chroot /target mkdir /dev/pts;\
chroot /target mount -t devpts -o gid=4,mode=620 none /dev/pts;\
chroot /target runuser -l kerry -c 'ansible-playbook -i "localhost," -c local /home/kerry/playbooks/base.yaml';\
chroot /target runuser -l kerry -c 'ansible-playbook -i "localhost," -c local /home/kerry/playbooks/desktop-mate.yaml';\
rm /target/home/kerry/playbooks.tar.gz;\
rm -rf /target/home/kerry/playbooks


Running other playbooks as desired. This has worked well for Debian 7, 8, 9, and now trying it with 10.

Unfortunately this was not successful, failing at the installation of mate step. (Just includes a few packages and that's really it)

The installation log is almost a meg so I will not include it here, but I did see the following line:

Code: Select all
Setting up fuse (2.9.9-1) ...\r\nlibkmod: ERROR ../libkmod/libkmod-module.c:1657 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory


This of course causes the whole package tree to fail installation.

How would I go about working around this?
kerryhall
 
Posts: 132
Joined: 2008-08-19 11:06

Re: /proc/modules error when trying to install mate with pre

Postby p.H » 2019-10-05 07:04

Looks like /proc is not mounted and is required to be.
p.H
 
Posts: 1151
Joined: 2017-09-17 07:12

Re: /proc/modules error when trying to install mate with pre

Postby Head_on_a_Stick » 2019-10-05 15:41

kerryhall wrote:
Code: Select all
chroot /target mkdir /dev/shm;\
chroot /target mount -t tmpfs none /dev/shm;\
chroot /target mkdir /dev/pts;\
chroot /target mount -t devpts -o gid=4,mode=620 none /dev/pts;\

Perhaps try this instead:
Code: Select all
for i in proc sys dev{,/pts,/shm} ;\
do mount --bind /$i /target/$i ;\
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10599
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: /proc/modules error when trying to install mate with pre

Postby kerryhall » 2019-10-19 22:50

I had to keep my procedure for shm and pts, but doing the bind mount for proc and sys worked! Thank you!
kerryhall
 
Posts: 132
Joined: 2008-08-19 11:06


Return to Installation

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable