Bookworm Build script

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

gumanzoy
Posts: 93
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 14 times
Been thanked: 18 times
Contact:

Re: Bookworm Build script

Post by gumanzoy »

@fredx181

Hi

I am sorry. I forget to keep dm-crypt.ko in initrd in last patch.

Need modify /usr/local/cr-initrd/mkinitrd

Code: Select all

 copy_including_deps /$LMK/kernel/drivers/md/md-mod.*
+copy_including_deps /$LMK/kernel/drivers/md/dm-crypt.*

It used for changes=
As i see in linuxrc code

Code: Select all

elif [ $CHANGES ]; then
    echo $i"setting up directory for changes"
    CHNEXIT=`echo $CHANGES | cut -d: -f1`; 
    [ $CHNEXIT = EXIT ] && CHANGES=`echo $CHANGES | cut -d: -f2-`
    [ $CHNEXIT = +EXIT ] && CHANGES=`echo $CHANGES | cut -d: -f2-`   
    
    [ -r $CFGDEV/$CHANGES ] && { DEV=`echo $CFGDEV | sed s@/mnt/@@`; LPTH=$CHANGES; } || locate -r $CHANGES
    if [ $? -eq 0 ]; then
	if [ -d /mnt/$DEV/$LPTH ]; then
	    mkdir -p /mnt/$DEV/$LPTH/changes 2>/dev/null && \
	    mount -o bind /mnt/$DEV/$LPTH/changes /memory/changes && touch /memory/changes/._test1 2>/dev/null
	else
	    if blkid /mnt/$DEV/$LPTH 2>/dev/null | cut -d" " -f3- | grep -q _LUKS; then
		for x in dm_crypt cryptd cbc sha256_generic aes_generic aes_x86_64; do modprobe $x 2>/dev/null; done
		losetup /dev/loop2 /mnt/$DEV/$LPTH
		echo $i"found encrypted .dat container"
		cryptsetup luksOpen /dev/loop2 crypt
		fsck_dat /dev/mapper/crypt
		mount /dev/mapper/crypt /memory/changes 2>/dev/null && touch /memory/changes/._test1 2>/dev/null

But i never use it. Can you test it with new initrd.

Another crypto modules copied as before. I don't touch it.
copy_including_deps /$LMK/kernel/crypto

My LiveUSB DogLinux Bookworm build for hardware testing (nvidia-drivers, GPUTest)

User avatar
fredx181
Posts: 3089
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1316 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

gumanzoy wrote: Wed Oct 30, 2024 2:35 pm

I am sorry. I forget to keep dm-crypt.ko in initrd in last patch.

Need modify /usr/local/cr-initrd/mkinitrd
...
+copy_including_deps /$LMK/kernel/drivers/md/dm-crypt.*

Ah, ok, no problem.
Tested and indeed encrypted savefile is not working without dm-crypt.*
With it, it works again, although very slow I must say (takes around 20 sec to continue after entering the password for encryption) well ... anyway it works.

Made the changes just now, i.e. latest upgrade-kernel v1.18.0 and the dog-boot-.... archives in MakeLive repo updated.

dancytron
Posts: 722
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 520 times
Been thanked: 217 times

Re: Bookworm Build script

Post by dancytron »

What would it take to make a version, probably a systemd version, with no "run as user"?

Everything runs as root (or doesn't run) when you are root and everything runs like normal debian when using a regular user.

User avatar
fredx181
Posts: 3089
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1316 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

dancytron wrote: Sat Nov 09, 2024 7:46 pm

What would it take to make a version, probably a systemd version, with no "run as user"?

Everything runs as root (or doesn't run) when you are root and everything runs like normal debian when using a regular user.

If I understand well, I'd say place some .desktop launchers for applications that won't run as root by default in /root/.local/share/applications.
These will show only from root login in the Menu. Modify the Exec= line to run with e.g. --no-sandbox .
When doing a build, it can be done manually in the 'chroot'.
But that's only for what appears in the Menu, probably you mean more (as you say "everything", also stuff like pulseaudio start etc...).

dancytron
Posts: 722
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 520 times
Been thanked: 217 times

Re: Bookworm Build script

Post by dancytron »

fredx181 wrote: Sun Nov 10, 2024 8:39 am
dancytron wrote: Sat Nov 09, 2024 7:46 pm

What would it take to make a version, probably a systemd version, with no "run as user"?

Everything runs as root (or doesn't run) when you are root and everything runs like normal debian when using a regular user.

If I understand well, I'd say place some .desktop launchers for applications that won't run as root by default in /root/.local/share/applications.
These will show only from root login in the Menu. Modify the Exec= line to run with e.g. --no-sandbox .
When doing a build, it can be done manually in the 'chroot'.
But that's only for what appears in the Menu, probably you mean more (as you say "everything", also stuff like pulseaudio start etc...).

Yes, by "everything", I mean pipewire and wireplumber. I would probably not use pulse audio.

User avatar
fredx181
Posts: 3089
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1316 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

This works for me as a Startup script with root and user login:

Code: Select all

    pipewire &
    pipewire-pulse &
    wireplumber &

Don't know about systemd (edit: well, remember now, see next post), could be that for user login the systemd service will provide starting it, so then the above only for root login.

User avatar
fredx181
Posts: 3089
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1316 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

@dancytron
Almost forgot: see EDIT here (about systemd starting wireplumber) viewtopic.php?p=129207#p129207

dancytron
Posts: 722
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 520 times
Been thanked: 217 times

Re: Bookworm Build script

Post by dancytron »

Let me build one and I'll tell you where I get stuck.

Probably a couple of days.

Dan

edit: well, more than a couple of days.

Post Reply

Return to “DebianDogs”