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,889  

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

I was probably root when I ran the installer.

Offline

#27 2025-04-25 16:41:44

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

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 (2025-04-25 16:45:26)

Offline

#28 2025-04-25 17:36:26

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

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

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

Offline

#29 2025-04-25 20:02:47

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 304  
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

#30 2025-05-10 19:12:41

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

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

okay its working again on devuan smile
the problem was with the bootloader options

Offline

#31 2026-02-07 01:12:32

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

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

if anyone cares,
i added some updates over the last months:

  • snapshots can now have multiple kernels

  • snapshots now have a loopback.cfg

  • which is handy for the new multi-usb script that now supporst just drag and drop the iso file and run the updater script to update grub

  • the initramfs for devuan is now generated with dracut (as it is for void)

but there is still one thing i would like to add,
and that is for the multi-usb to have a live system with a persistent overlayfs
i thought dracut could help me out here but if i read the scripts correct, it requires systemd for this trick

so i guess my best bet is to just add my own script into the initramfs that checks if "live-overlay.img" file is present on the iso partition of the usb-stick and then mount the overlay and remount root. can anyone help me with this?

Last edited by alphalpha (2026-02-07 01:15:34)

Offline

#32 Today 13:19:21

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

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

i finally have added a persistence option for snapshots on multiboot-usb

just select the corresponding grub entry and boot, container files will created on the fly when needed

make sure to unmount the usb device manually after you use my multi-usb tool

Last edited by alphalpha (Today 13:23:22)

Offline

Board footer