The officially official Devuan Forum!

You are not logged in.

#976 Re: Other Issues » Runit » 2021-04-06 17:55:16

Update:  I forked live-config to create live-config-runit which sets up console autologin in the live session. The code for that is in /lib/live/config/0190-runit. It works, but I did not replace the live-config init script with runscripts.

Today I tried making runscripts for live-config. It's set up as a one-shot, and it runs, but it does not run early enough. A comment in the init script says it must start before mountkernfs and in my sysvinit system, there is rcS.d/S01live-config which starts before S02mountkernfs. That link is not present in the runit system.

/etc/runit/1 contains:

/lib/runit/run_sysv_scripts '/etc/rcS.d'

So, /lib/runit/run_sysv_scripts will start the init scripts linked in rcS.d.
If the init script is not executable, then live-config does not run until the desktop comes up, so autologin does not happen, and you get a login screen. I've been making the init scripts non-executable, mainly to make it easier to see which ones are managed by runit when I look in /etc/init.d.

Is there another way in runit to make a script run first? I know a runscript can state what must be started before it, but I haven't seen a way to get to say what it must start before. (everything, in this case).

'update-service --remove live-config && chmod +x /etc/init.d/live-config' set it back to the way it was. Now autologin works again in the live-isos I make.

#977 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-06 11:25:49

englee wrote:

Hi,
Burnt beowulf minimal LiveCD (no DT) onto a CD-R media, which booted just fine on the old MBP.
'grub-install' trapped the following error on the LiveCD VM install to HDD:

Installing for i386-pc platform.
grub-install: error: unable to identify a filesystem in hostdisk//dev/sda; safety check can't be performed.

Your comments, where the MBP is exempt from this glitch in the matrix?
englee

If you are installing from the minimal-live, there will already be at least one ext2/3/4 filesystem on the virtual disk when you get to the grub-install stage.  What do fdisk and blkid show for the disk? What virtualization software are you using on the mac? Maybe it does something differently from what I expect.

#978 Re: Freedom Hacks » Debbowulf is not to be confused with Beomint » 2021-04-05 18:31:31

No, mate-media in beowulf is the stock debian version. You can get the antofox forks here - http://hezeh.org/packages/

#979 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-05 18:24:17

There's no specific iso for macs, but the amd64 desktop-live has both the 32 and 64-bit bootloaders and is know to work on at least one old macbook pro. If you do in fact need the 32-bit bootloader, you will need to install the grub-efi-ia32 package in the live environment before you install the system. You can install it with apt if you have network, or you can install it with

dpkg -i /grub-efi-ia32*.deb

When you install the package, don't let it install the bootloader at that time. The live installer (Refracta Installer) will let you choose the efi partition if there are two or more.

Make sure you check if that's what you need with

cat /sys/firmware/efi/fw_platform_size

before you try the 32-bit bootloader.

I'm not sure that will be enough. You still need a way to make the machine boot from the usb drive. Google says hold down the option key at boot and then select the usb drive.

#980 Re: Installation » Ifup wifi connect at boot - sysv 5 to 7 seconds slower » 2021-04-05 18:07:33

Are you using 'allow-hotplug' or 'auto' in /etc/network/interfaces? Whichever one you're using, you could try the other and see if it makes a difference.

#981 Re: Freedom Hacks » Debbowulf is not to be confused with Beomint » 2021-04-04 18:15:22

A netinstall from a 3.0 iso would give you 3.1 or actually a little newer than that since some packages have been upgraded since last week. Volume settings on my up-to-date mate don't get lost. I do keep losing the hardware setting. Analog Stereo Output keeps reverting to Analog Stereo Duplex.

I tried running 'alsactl store' before rebooting and 'alsactl restore' after reboot. It didn't save the hardware setting.

#982 Re: Installation » [SOLVED] Problem installing on an Acer Aspire 315-23 » 2021-04-04 15:21:10

I'm going to update my backports test iso today and will post the link later.

#983 Re: Installation » [SOLVED] Problem installing on an Acer Aspire 315-23 » 2021-04-04 14:54:58

The desktop-live isos already have firmware-amd-graphics installed. Maybe the version from backports is needed. I don't have an easy way to test that right now. And debian wiki suggests that this is not the problem. (4.19 is new enough)

#984 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-03 15:46:45

FYI: Some macbook pros use a 32-bit efi bootloader with a 64-bit operating system. I know the 2011 ones did that. Not sure about the 2013 models or how to tell which grub it needs.

#985 Re: Freedom Hacks » Debbowulf is not to be confused with Beomint » 2021-04-02 19:01:07

Missing from beomint:
https://paste.debian.net/1192135/

Missing from debbowulf:
https://paste.debian.net/1192136/

The one that looked obvious was debian-mate-default-settings, which is missing in the system that does save its settings. So I tried removing that from my mate. The result was no panel and no righ-click menu on the desktop.

I also tried installing and running dconf-editor to see if there was something about audio settings in it. There is. Toggling "use default mixer device" did not fix it.

I don't know what to try next. Do you know where mate saves its settings?

#986 Re: Installation » [SOLVED] Permissions for script in cron » 2021-04-02 09:44:55

The post at Dev1 that I linked to, which had the same /usr/sbin/anacron --> /bin/true and deviations apparently was not/had not been using Refractainstaller.

So something other used live-config and generated the same problem.
https://dev1galaxy.org/viewtopic.php?id=1901

That was a miyolinux system, which uses refractainstaller.

The way it's designed, the live-config change should not need to be undone as it only exists in the running live system. If you mount the filesystem inside the live-iso to look at it when it's not running, you would find that the diverted file does not exist. It gets created by live-config when the system boots.

#987 Re: Installation » [SOLVED] Permissions for script in cron » 2021-04-01 15:48:54

uh-oh...

I haven't been paying close attention to this thread.

live-config messes with anacron via the live-config script, /lib/live/config/1110-anacron which uses dpkg-divert to disable anacron. This is useful in a live-CD where everything is read-only.
This only activates when you boot into a live system, not an installed system.

Refractainstaller copies the RUNNING live system to hard drive.

You just uncovered a 10-year-old bug that I didn't know about. The installer needs to undo this during the installation.

I suspect that the right way to undo it is to use dpkg-divert.

# ls -l /usr/sbin/anacron*
lrwxrwxrwx 1 root root     9 Apr  2  2018 /usr/sbin/anacron -> /bin/true
-rwxr-xr-x 1 root root 38928 Feb  6 14:18 /usr/sbin/anacron.orig.anacron

# dpkg-divert --remove /usr/sbin/anacron
dpkg-divert: warning: please specify --no-rename explicitly, the default will change to --rename in 1.20.x
Removing 'diversion of /usr/sbin/anacron to /usr/sbin/anacron.orig.anacron by live-config'

And then to verify that it really did what it was supposed to do (but did not):

# ls -l /usr/sbin/anacron*
lrwxrwxrwx 1 root root     9 Apr  2  2018 /usr/sbin/anacron -> /bin/true
-rwxr-xr-x 1 root root 38928 Feb  6 14:18 /usr/sbin/anacron.orig.anacron

Yet dpkg-divert thinks it did the right thing:

# dpkg-divert --remove /usr/sbin/anacron
dpkg-divert: warning: please specify --no-rename explicitly, the default will change to --rename in 1.20.x
No diversion 'any diversion of /usr/sbin/anacron', none removed.

Computer, do as I say!

# mv /usr/sbin/anacron.orig.anacron /usr/sbin/anacron
# ls -l /usr/sbin/anacron*
-rwxr-xr-x 1 root root 38928 Feb  6 14:18 /usr/sbin/anacron
root@nomad:/home/phred# 

I'll reboot and see what happens.

Update: I see this in syslog for the first time after reboot. I think it's working now.

Apr  1 15:44:42 localhost anacron[1828]: Will run job `cron.daily' in 5 min.
Apr  1 15:44:42 localhost anacron[1828]: Will run job `cron.weekly' in 10 min.
Apr  1 15:44:42 localhost anacron[1828]: Will run job `cron.monthly' in 15 min.

#988 Re: Off-topic » systemd's new feature (wtf?) » 2021-04-01 12:55:32

Over here it's 04/01 and people have been doing this at least as long as debian-live has been around. This "new" implementation sounds like it might be a useful addition for a couple of specific cases.

#989 Re: Freedom Hacks » Debbowulf is not to be confused with Beomint » 2021-04-01 12:47:19

If you have one of each of these systems, you could compare package lists. Or make two package lists and paste them somewhere like paste.debian.net and I will compare them.

dpkg -l | awk '/^ii/ { print $2 " " $3 }' > package_list

#990 Re: Other Issues » Runit » 2021-03-31 12:28:41

I fired up the antix full runit iso. Here's a list of runscripts they have that are not in Lorenzo's collection. This is as far as I've gotten with it. I haven't tried any of these yet or even looked inside the files.

AntiX has:
bluetooth, connman, ntp, ofono, rpcbind, rsync,
rsyslog, smartmontools, tlp, udevd, ufw

#991 Re: Devuan » Meet Chimaera's deepsea theme » 2021-03-29 14:26:16

Here's the final version (I think). Tested in xfce (thunar) and mate (caja), both in chimaera. I'll rebuild the package later today.

.rubberband,
.view .rubberband,
view rubberband,
rubberband {
	background-color: alpha (@theme_selected_bg_color, 0.35);
	border-color: @theme_selected_bg_color;
	border-style: solid;
	border-width: 1px;
	border-radius: 2px;
}

#992 Re: DIY » [HowTo] runit-init as PID1 » 2021-03-29 14:03:55

Back in June I posted in this thread and said there needs to be a live-config-runit package. Well, now there is. I forked live-config. The version currently in ceres includes live-config-runit. (11.0.2-1+devuan2). It will move into chimaera soon.

IMPORTANT NOTE:  If you have live-config installed, when you try to install runit-init, apt will want to remove live-config (and refractasnapshot, if that's installed.) The way to get around this is to include live-config-runit in the command to install runit-init.

For beowulf, I just made an easy single live-config-runit package that isn't in the repo. You can get that here: http://distro.ibiblio.org/refracta/file … u1_all.deb  Install it before you try to install live-config and after you install runit. (i.e. stuff might get put on the autoremove list. Just reinstall things if you need to.)

Another note: I did not replace the live-config init script with a run script. That's a project for a later date.

#993 Re: Hardware & System Configuration » [SOLVED] Changing a parameter in /sys/module » 2021-03-27 14:12:52

On my T420 running chimaera, I get the same message about iwl-debug-yoyo.bin, but there's no boot delay. I don't have any error messages about regulatory.db. That loads ok.

I don't know where to go with this. Just thought I'd add some data points.

#994 Re: Devuan » Meet Chimaera's deepsea theme » 2021-03-27 13:48:23

sgage wrote:

Hi golinux,

I've been using the Chimaera theme for about a week now, and I really like it. But I just noticed a small glitch - on the MATE Desktop, the selection rectangle is an opaque solid white instead of translucent blue, covering up whatever it is one is trying to select. I guess I don't make group selections of things on the desktop very often, because I just noticed this yesterday :-)  Anyway, thought you ought to know.

You're right. I just tried this in chimaera with mate. It also does it in beowulf with xfce and the cinnabar theme. Maybe we can figure out how adwaita does it and do the same in our themes.

#995 Re: Devuan » Meet Chimaera's deepsea theme » 2021-03-26 19:23:52

Here's deepsea-icon-theme. It's in ceres now and will move down to chimaera next week.

deb package is here:
https://pkgmaster.devuan.org/devuan/poo … .0_all.deb

#996 Re: Other Issues » No updates for days (Chimaera), last time it was an issue for weeks... » 2021-03-25 13:10:52

There were no new packages in chimaera for a couple of days, and now there are. I think it's possible that there really were no new packages. Buster is in freeze, so the changes should be slowing down.

#997 Re: Installation » Non Booting GRUB on Beowulf » 2021-03-25 12:41:05

set root=(hd0)   # might be hd1 or hd2
linux /boot/isolinux/linux
initrd /boot/isolinux/initrd.gz
boot

But you will be booting and installing in uefi mode. Legacy boot will give you an isolinux boot menu instead of a grub boot menu. Is there a way to force a legacy boot?

#998 Re: Hardware & System Configuration » [SOLVED] Unmet dependencies with minimal-live image » 2021-03-25 11:16:28

I found the problem in the minimal-live. The fix is:

apt update
apt remove librsvg2-2
apt install librsvg2-2

That will drop the version from 2.44.10-2.1+deb10u3 to 2.44.10-2.1. And then you can install firefox-esr and the other stuff.

The problem is that the build process pulled in librsvg2-2 from beowulf-proposed-updates, but then that repo was removed from sources.list. I'll have to make a new set of isos.

Berni, if your last post is after a netinstall, then there may be another problem, too.

#999 Re: Other Issues » Runit » 2021-03-24 11:03:00

I'm using runit-init in chimaera. The getties, acpid and ssh were all set up automatically.  I set up others using advice from this thread.

sendkey ctrl-alt-f2 worked. Thanks!

Also forgot to meniton - if you make a new runlevel and decide to change its name, don't change it while you are in that runlevel, and pay attention to the symlinks in /etc/runit/runsvdir. My system was unbootable because of a dead symlink for default that pointed to the old name.

#1000 Re: Other Issues » Runit » 2021-03-23 20:09:06

I wanted to be able to boot to console on occasion. With sysvinit, I just turn off the display manager in runlevel 3 and put a '3' in the boot command when I want that. It's pretty easy to make a new runlevel in runit.

1. Create a directory in /etc/runit/runsvdir/ named for the new runlevel. Check man pages for the reserved names.
2. Populate it with symlinks to services in /etc/sv/
3. Change to that runlevel with a command or boot to that runlevel with a directive in the boot command.

I did it like this and got the symlinks right without having to make them all manually or script it.

cd /etc/runit/runsvdir
mkdir testt
cp -a default/* testt/
rm testt/lightdm

Add this to the linux line of a boot entry to be able to boot to the new runlevel:

runitdir=testt

This is working correctly.

To change to the new runlevel after a default boot:

runsvchdir testt

This isn't working for my example. It drops to a black screen with a blinking cursor, and I'm in a VM window, so I can't switch tty. It does work when changing to the default runlevel after booting to console.

Board footer

Forum Software