Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

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

#1 Post by kerryhall »

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?

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

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

#2 Post by p.H »

Looks like /proc is not mounted and is required to be.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

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

#3 Post by Head_on_a_Stick »

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 ;\
deadbang

kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

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

#4 Post by kerryhall »

I had to keep my procedure for shm and pts, but doing the bind mount for proc and sys worked! Thank you!

Post Reply