The officially official Devuan Forum!

You are not logged in.

#26 2025-04-15 13:37:05

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,587  

Re: α-utilz -- a funky version of refractasnapshot/installer

I was probably root when I ran the installer.

Offline

#27 Yesterday 16:41:44

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 162  

Re: α-utilz -- a funky version of refractasnapshot/installer

i rewrote the whole sudo part, it is no longer necessary to run this script with sudo (it will ask for a sudo password if needed)
if you are on the root account, and there is a directory in /home that belongs to someone other than root, it will assume that is the correct user

i tested this on daedalus and it spat out a bootable iso,
however the iso will fail to boot properly, during /scripts/init-bottom i get

mount: /root/dev: mount point does not exist

i got similar messages on artix
void works tho

my first thought was that there is something wrong with the initramfs.img but it has the same md5 as when i use fmisthreds refractasnapshot
so it is probably something else, not really sure how i can fix this

Last edited by alphalpha (Yesterday 16:45:26)

Offline

#28 Yesterday 17:36:26

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,587  

Re: α-utilz -- a funky version of refractasnapshot/installer

What is /root/dev? Why is it trying to mount there?

Offline

#29 Yesterday 20:02:47

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 249  
Website

Re: α-utilz -- a funky version of refractasnapshot/installer

fsmithred wrote:

What is /root/dev? Why is it trying to mount there?

Have a look at /usr/share/initramfs-tools/init,  you'll find the following lines moving /run and the virtual filesystems /sys and /proc to the real system:

export rootmnt=/root

(...)

# Move /run to the root
mount -n -o move /run ${rootmnt}/run

# We expect udev's init-bottom script to move /dev to ${rootmnt}/dev
run_scripts /scripts/init-bottom

# Move virtual filesystems over to the real filesystem
mount -n -o move /sys ${rootmnt}/sys
mount -n -o move /proc ${rootmnt}/proc

Udev's /usr/share/initramfs-tools/scripts/init-bottom/udev script will move /dev to ${rootmnt}/dev, as its supposed to:

# move the /dev tmpfs to the rootfs
mount -n -o move /dev ${rootmnt}/dev

If you work systematically, things will come by itself (Lev D. Landau)

Offline

Board footer