The officially official Devuan Forum!

You are not logged in.

#1 Re: Desktop and Multimedia » Excalibur RC1 + Xfce + slim + auto login shows Untitled window » 2025-10-16 07:14:37

@ralph.ronnquist - Thanks for the tips. I have a feeling I'm be referring to your comment soon as I continue testing the MATE and Xfce desktops.

@golinux - The most I can tell you is that during my Excalibur + MATE desktop testing, I did a quick test of all of the clearlooks-phenix themes (cinnabar, darkpurpy, deepsea, lightpurpy, sapphire), and the lightpurpy was the only one that didn't load. That's when I investigated that theme to find the root cause.

@fsmithred - I just confirmed that the light purpy theme installed manually (sudo apt-get install ./clearlooks-phenix-lightpurpy-theme_7.0.1-6_all.deb) now loads correctly in the MATE desktop's Appearance app, instead of showing a question mark. This confirms the fix for this theme's package. This ends the sidetrack to the light purpy theme problem. Thanks for fixing it.

So back on topic, the current status is that Excalibur has a proposed fix to slim that restores the previous auto-login behavior (without the Untitled window), but potentially breaks an upcoming slim feature involving multiple monitors. Someone has also filed the same bug in Debian slim, so they might have a better fix.

#2 Re: Desktop and Multimedia » Excalibur RC1 + Xfce + slim + auto login shows Untitled window » 2025-10-15 03:09:43

@fsmithred - Off topic: Are you still the maintainer of the package "clearlooks-phenix-lightpurpy-theme"? I filed a bug on Sep 9, and the last email I got was "Your message to Devuan-bugs awaits moderator approval".

  Excalibur + MATE Desktop: clearlooks-phenix-lightpurpy-theme doesn't work

The fix should be pretty easy: fix the theme's installed directory's capitalizaton. I'd like to verify the fix and have 1 fewer bug before Excalibur's release.

#3 Re: Desktop and Multimedia » Excalibur RC1 + Xfce + slim + auto login shows Untitled window » 2025-10-15 01:43:06

@fsmithred - I retested using the live desktop and downloading the source code. This time, I added the "excalibur-proposed-updates" deb-src line. When I download the source code using "apt source --compile slim", I can now see that at the bottom of Panel.cpp, the code that creates the child window using XCreateSimpleWindow() IS commented out, which explains why the live desktop's slim doesn't show the "Untitled window", but the login screen's background image tiles onto the 2nd monitor - the login window is using the Root window owned by the X server, which stretches over both monitors.

================

I looked through commit history for the branch "suites/excalibur-proposed-updates":

  https://git.devuan.org/devuan/slim/src/ … ed-updates

and I found the commit named "New upstream version 1.4.1" that added the code to create this child window:

  https://git.devuan.org/devuan/slim/comm … ec660f25c4

I was trying to find out WHY this child window was created. And the only clue I have is in the new lines added to the ChangeLog. This one appears relevant to the child window:

Adjusted how/when the pseudo-root window is created and removed, in
preparation for handling multiple monitors in SLiM

I'm not sure what feature slim will implement that requires multiple monitors. One guess is for a multi-monitor setup, slim wants to allow the user to specify WHICH monitor to show the login GUI. That would mean that slim will need to create this child window for the user-specified monitor. So I can see why commenting this out would be the "wrong" fix in the long term, because the child window is needed for a multi-monitor feature.

================

Something I learned the hard way. When you first showed me the URL to the git repository for the excalibur-proposed-updates:

  https://git.devuan.org/devuan/slim/src/ … ed-updates

I downloaded panel.cpp, examined the end of the file, and saw that the child window code was NOT commented out. Furthermore, the file was last modified 1 year ago. So I couldn't understand how this fix for the "Untitled window" was recently put into "excalibur-proposed-updates" and would be available soon.

After looking around the repository. I now see that this fix was never checked as a change to panel.cpp. Instead, it was checked in as a patch file in the subdirectory debian/patches.

    https://git.devuan.org/devuan/slim/src/ … an/patches

When I used "apt source --compile slim", the command automatically applied the patches, which explains why I DO see that the child window code was commented out.

So the hard lesson learned is that if you go to these repositories in a web browser and download a source file to examine it, you might not be reading code that matches the compiled binary file, because the compiled binary file may include patches in debian/patches that changes the source code. Nasty gotcha if you're new to this.

That's all for tonight. smile

#4 Re: Desktop and Multimedia » Excalibur RC1 + Xfce + slim + auto login shows Untitled window » 2025-10-14 04:48:17

@fsmithred - I confirmed that the live desktop rc2 is using slim. And I do not see the "Untitled window" when the live desktop auto logs in. I also did a 2-monitor test, and slim's background DOES tile onto the 2nd monitor.

The problem is that both of these behaviors are not possible with the source code downloaded from "apt source --compile slim". I did that from the live desktop (see my test notes), and confirmed that the source code IS creating the child window "Untitled window" and the background should NOT tile onto the 2nd monitor.

The only conclusion I can think of is that you're building slim for the live desktop from a different source code than what's available from "apt source". Perhaps your versiom of slim code INCLUDES the code change that comments out creating the child window?

Other than that, there were no surprises in my rc2 live desktop tests.

* Test Notes

- Confirm that slim is the display manager.
  + Ans: Yes. "ps -ef | grep slim" shows "/usr/bin/slim -d".
- Screen resolution OK?
  + Ans: Yes. xrandr shows 1920x1080 on FX-8120's monitor, 1600x900 on A6-3620's monitor.
    - I was testing both PCs at the same time. Each PC has its own monitor. These resolutions are the correct max resolution for the connected monitor.
- Check that slim.conf has auto login enabled.
  + Ans: Yes, "cat /etc/slim.conf" shows:
    default_user devuan
    auto_login   yes
- Check if slim + auto login showed the "Untitled window".
  + Ans: slim + auto login did NOT show an "Untitled window".
    ? How is this possible? Does this build contain the code change that disabled slim from creating the child window that causes the "Untitled window"? Or is this using an older version of slim?
      - Version of slim: "apt show slim" shows version is "1.4.1-devuan1+excalibur1".
      - Also, "slim -v" shows 1.4.1.
        - This seems like the current version. Daedalus slim was 1.4.0.
- I downloaded the source code using "apt source --compile slim". This includes enabling deb-src, installing dpkg-dev. I didn't install all of the dependencies required to compile, just enough to get the source code patched and the compiling started.
  - Taking a look at panel.cpp, at the bottom, slim's code IS creating the child window. Why don't I see it in the live desktop auto login??? Is the source code from apt source NOT correct for the slim binary in the live desktop???
  - I can't compile and test slim like I did yesterday, because it requires a reboot to run the compiled slim binary, which will wipe out the live desktop environment. This is as far as I can go.
- Logging out, then logging back in as devuan/devuan, any problems?
  + Ans: No problems seen.
- Quick check: Confirm that RAID is NOT installed on the live desktop.
  + Ans: Confirmed. "cat /proc/mdstat" shows "No such file or directory".
- Quick check: There's an mdadm.deb in the root / directory.
  + Ans: Confirmed. mdadm_4.4-11devuan3_amd64.deb is there.
- Dual monitor test: Reboot to a fresh live desktop, then log out to observe the slim login GUI and background.
  ? Ans: The background tiles to the 2nd monitor, even though the source code says the child window IS being created with the dimensions of the 1st monitor, which should keep the background ONLY on the 1st monitor. There's definitely a source code to binary mismatch (or some voodoo magic) going on with the live desktop slim.
- Memtest: still runs?
  + Ans: Both menu options worked in UEFI and legacy boot.

#5 Re: Desktop and Multimedia » Excalibur RC1 + Xfce + slim + auto login shows Untitled window » 2025-10-13 05:00:54

@fsmithred: I never figured out how to download from git, and I don't think I'll have time to sidetrack and figure that out (waaay too many other hobby-time projects in progress). So I can't compile and test the "excalibur-proposed-updates" branch.
   
But I CAN download the two main files related to this problem - "app.cpp", "panel.cpp" - and compare them to the Excalibur slim that I debugged today. I don't see any changes in "excalibur-proposed-updates" that would fix this "Untitled window" problem. None of the code changes have anything to do with this child window that slim is creating.

#6 Re: Desktop and Multimedia » Excalibur RC1 + Xfce + slim + auto login shows Untitled window » 2025-10-13 04:33:56

I did some tests between Dadealus's slim and Excalibur's slim. I don't have an explanation for why the code was changed, but I have a guess. I also don't have a good proposal for a solution, because I don't understand enough about the login error handling and XWindows to figure out where to move the code. Not in one afternoon, anyway.

* Daedalus slim
When Daedalus slim shows the login screen, if there are 2 monitors, the login screen is shown on one monitor, and the other monitor shows the background. In the case of Devuan, the background is a small solid blue 50x31 image, which slim tiles horizontally and vertically. So slim shows a solid blue background, which looks OK on the 2nd monitor.

But if you have a unique background image, that unique image gets tiled over to the 2nd monitor. Now the user sees two monitors with this unique background, but only one of them contains the login screen. So this is my guess as to the original reason why the code was changed - to not show anything on the 2nd monitor, which does not contain any login GUI, to avoid confusing the user.

When slim starts, it requests for a Display, a Screen, and a Root window. I don't understand these XWindows concepts, but my debugging shows that the width and height is the sum of both monitors side by side, such as 3840x1080.

* Excalibur slim
In Excalibur slim, the implemented solution was to create a child window that's the width/height of just the primary monitor. All of the login window's GUI/background/etc will be placed inside this child window. As a result, nothing is shown on the 2nd monitor.

When you log in manually, Excalibur slim destroys the child window that it created, so you don't see this child window.

But when you autologin, the code jumps straight to the user/password login logic, and never destroys this child window, resulting in this "Untitled window" that's the size of the primary monitor. That's because the code never NEEDED to clean up any child windows before. The previous Root window was owned by the X server.

So it sounds easy to say "just destroy the child window before doing the auto login", but I don't know what happens if the auto login fails and slim has to show the login GUI. Will the code recreate a new child window for the login GUI? If yes, someone will have to move the code logic so this child window gets recreated when it's needed. This means refactoring the code and retesting the different code paths, including error handling code paths.

The reason why commenting out the code block seems to work is that both the child window and the Root window refer to the same Root window. So the behavior ends up being the same as Daedalus slim - there's no untitled window, but the background tiles to the 2nd monitor. And the slim code is smart enough to recognize that the child window refers to the same Root window, so it does NOT try to destroy the Root window that it didn't create.

That's all the time I have for this problem. It'll be up to the Debian maintainers who should know this code better than I can - at least in 1 afternoon's debugging - to figure out a good solution.

#7 Re: Desktop and Multimedia » Excalibur RC1 + Xfce + slim + auto login shows Untitled window » 2025-10-12 22:46:35

Yes, I understand. That's why I'm currently trying to figure out how to download the slim package so I can read the code and get an idea of what that area of code is doing. It's not something I wanted to do today, but I want a reliable fix.

#8 Re: Desktop and Multimedia » Excalibur RC1 + Xfce + slim + auto login shows Untitled window » 2025-10-12 22:29:43

One thing that makes me uneasy about the fix, the guy wrote:

"Maybe someone who actually knows what they are doing can fix this?"

That always makes me nervous about whether the code change is really a fix, or whether it breaks something else. We'll see. smile

#9 Desktop and Multimedia » Excalibur RC1 + Xfce + slim + auto login shows Untitled window » 2025-10-12 20:22:19

Eeqmcsq
Replies: 20

Has anyone tried using Excalibur + slim display manager and turned on auto login? I'm seeing a black window covering the desktop with an "Untitled window" in the top panel. My investigation suggests that slim is launching this window. I can click on it and close it with Alt+F4, and the normal Xfce desktop is now shown.

  https://imgur.com/a/71EY4uv

I've seen this on two PCs now, (AMD A6-3620, AMD FX-8120), so I don't think it's something weird with one specific PC.

I don't see this problem in Excalibur + MATE, because choosing MATE installs lightdm, not slim. I also don't see this problem in Daedalus + Xfce + slim. So something must have changed in slim between Daedalus and Excalibur.

If no one has any solutions or workarounds, I'll have to download the slim source code in Daedalus and Excalibur, and find out what's going on - yuck sad

* Test details

- Image file: devuan_excalibur_6.0.0-rc1_amd64_netinstall.iso
  - Downloaded from: https://files.devuan.org/devuan_excalib … aller-iso/
- UEFI or Legacy boot doesn't matter.
- In the installer's "Software selection" screen, I chose these:
  - Devuan desktop environment
  - Xfce
  - SSH server
  - standard system utilities

- After the installation, manually log in to the Xfce desktop.
- Turn on slim's auto login:
  - sudo mousepad /etc/slim.conf
  - Uncomment "default_user", and specify <your user name>.
  - Uncomment "auto_login", and specify "yes".
- Reboot to trigger the auto login to the Xfce desktop
- In the Xfce desktop, the main desktop pane is blocked by a black window. The Xfce's top and bottom panels appear on top of the window in their correct positions (top/bottom) of the screen. In the top panel, I see a window "button" titled "Untitled window".

If I right click on this "Untitled window" -> Launch New Instance, I see this error: "Failed to execute child process "/proc/1415/exe" (Permission denied)".
 
Using ps -ef | grep 1415, the 1415 process is "/usr/bin/slim -d".
 
If I run "sudo /proc/1415/exe", I see "slim: Another instance of the program is already running with the PID 1415", confirming that 1415 is slim.
 
My current conclusion is that this window was launched by slim, intended for the login screen. But after auto logging in, slim didn't clean up the unneeded window.

#10 Re: Documentation » [HowTo] MATE Desktop: Change the Applications icon to the Devuan icon » 2025-09-23 03:50:31

sad about your being burned out. And yes, I did see something about "death metal" in the Excalibur directory, which is why I thought Excalibur would have a new icon file name. It's also why I spent this evening testing the other 3 distros - ascii, beowolf, chimaera - so I can complete the list of icon files in my original post and make sure the list is accurate.

#11 Re: Documentation » [HowTo] MATE Desktop: Change the Applications icon to the Devuan icon » 2025-09-23 01:33:13

Oh wow. Nope, I had no clue. I'm pretty much jumping from Jessie to Excalibur, with just a bit of Daedalus testing, so I had no clue that there have been themes for each release. Also, it just dawned on me that Excalibur hasn't actually been released yet. I've been so busy writing my own setup notes that I've been treating Excalibur like it's been released. That would mean that Excalibur will likely have a different icon file, right?

Should I just delete this post?

#12 Documentation » [HowTo] MATE Desktop: Change the Applications icon to the Devuan icon » 2025-09-23 00:17:58

Eeqmcsq
Replies: 4

When you install Devuan + Xfce, the Applications menu icon is the Devuan icon. But for MATE desktop, it uses the icon from your current theme. Here's how to change the icon.

- Install dconf-editor if it's not installed: sudo apt-get install dconf-editor
- Run dconf-editor.
- Go to: org -> mate -> panel -> menubar
- Change the value to the string that matches the distribution:

Excalibur : sapphire-round-32x32
Daedalus  : sapphire-round-32x32
Chimaera  : deepsea-round-32x32
Beowulf   : gdo-icon
Ascii     : gdo-icon
Jessie    : gdo-icon

The setting name refers to a file located in /usr/share/pixmaps. Example: /usr/share/pixmaps/sapphire-round-32x32.png.

- Click the Apply button to save the change. The icon should change immediately.

- To undo the change, set the "menubar" value back to its default string: start-here

#13 Re: Installation » [SOLVED] Excalibur net install 20250823 not installing rsyslog » 2025-09-08 17:55:19

I just tested devuan_excalibur_6.0-20250830_amd64_netinstall.iso, and I confirmed that rsyslog IS installed. Thanks for making the new iso with this change.

#14 Re: Installation » [SOLVED] Should the live desktop auto start RAID arrays? » 2025-09-03 03:45:18

Sure, and thanks for listening to my request, AND for fixing the memtest.

#15 Re: Installation » [SOLVED] Should the live desktop auto start RAID arrays? » 2025-09-01 18:27:31

I tested devuan_excalibur_6.0-noraid-2025-08-29_1719_amd64_desktop-live.iso on the two PCs that I had reported in the first comment. I ran the live desktop, then rebooted into the PC, and the RAID arrays were started normally with no issues. I repeated the test 2 more times on each PC, and no RAID issues, or any other issues to report.

So the solution of not having any RAID installed by default on the live-desktop worked.

#16 Re: Installation » [SOLVED] Should the live desktop auto start RAID arrays? » 2025-08-31 06:09:28

* Quick summary

@fsmithred - I tested the live desktop iso devuan_excalibur_6.0-noraid-2025-08-29_1719_amd64_desktop-live.iso, and I confirmed that it did NOT auto start my test RAID arrays, which is good. I also confirmed that I can install the mdadm.deb in the root directory and do some RAID stuff.

The next test is the REAL test: run the desktop live on the 2 PCs that I reported in the first comment and make sure there are no other hidden surprises. Of course, I'll have to first run backups on those two PCs, which means digging out some extra HDDs, USB to SATA dock, etc. from my closet of tech stuff. So it might take a few days before I have more test results.

* Test notes

* Checking the iso's /live/initrd.img
  - file: devuan_excalibur_6.0-noraid-2025-08-29_1719_amd64_desktop-live.iso
  - Steps: Mount the iso, copy live/initrd.img to a temp directory.
  - cmd: unmkinitramfs initrd.img <output directory>
  - Weird. Extracting the initrd.img produces 3 directories: early, early2, main. Since it works, this could be just the way the live desktop init ram disk is organized.
  - Inside main, the contents look like the usual init ram disk.
  - find . | grep mdadm : No files found. Nothing related to mdadm is inside this ramdisk.
  - find . | grep rules.d : None of the rules files in udev/rules.d have any relation to md or raid.

Conclusion so far: If the init ram disk is has no knowledge of RAID, it shouldn't auto start any of my test RAID arrays.

* Checking the live desktop
  - cat /proc/mdstat  : file not found
  - sudo which mdadm  : file not found
  - lsmod | grep raid : No raid0, raid1, etc. modules.
  - lsmod | grep md   : No md_mod module.

Conclusion so far: Now that's what I call a solution. As predicted, since the init ram disk is totally clueless about RAID, it didn't (or couldn't) auto start any of the RAID arrays.

* Live desktop: installing mdadm.deb located on the root directory
  - install cmd: sudo dpkg -i /mdadm_4.4-11devuan3_amd64.deb
    - The install worked. There were some info messages about "live system is running on read-only media", and an error with grub-probe, but I'll see how far I can get.
  - Checking lsmod, md_mod is now loaded, but none of the raid modules are loaded.
  - cat /proc/mdstat: File exists. No RAID personalities listed. No arrays started.
  - sudo mdadm --examine --scan
    - Correctly discovered two RAID arrays, /dev/md/11, dev/md/22.
      - I don't know what the extra / means between the "md" and the number, but I'll keep going.
  - sudo mdadm --assemble /dev/md77 --uuid=<RAID UUID>
    - Array started on the intentionally weird md number, md77.
    - Array is confirmed in /proc/mdstat.
    - /proc/mdstat also shows the "raid1" personality.
    - lsmod now shows that the raid1 module is loaded. I guess the raid modules get loaded when they're needed.
      - This is convenient. The user doesn't have to manually load specific RAID modules in order to start their RAID arrays.
  - sudo mdadm --stop /dev/md77
    - Unsurprisingly, this also works.

  + Retest with no network connection (unplug from the PC).
    - Results: all same

  + Retest with no internet connection (plug PC into LAN, but unplug router's WAN).
    - Results: all same

Conclusion: Confirmed that the user can install mdadm locally and do RAID stuff, and there's no dependency on an Internet connection or any LAN connection.

#17 Re: Installation » [SOLVED] Excalibur net install 20250823 not installing rsyslog » 2025-08-29 18:40:19

I can file the bug. But since the next netstall iso will include rsyslog and is coming soon, I'll test that netinstall build first. If rsyslog is confirmed to be installed, I'll skip the bug report.

#18 Re: Installation » [SOLVED] Should the live desktop auto start RAID arrays? » 2025-08-29 05:21:00

Here's what I've learned tonight about blacklisting that's not been mentioned in other comments.

* What it takes to unload the md_mod module

Running "sudo modprobe -r md_mod" returns the error: "modprobe: FATAL: Module md_mod is in use.". But it doesn't tell you who's using it.

Running "sudo rmmod md_mod" returns the error: "rmmod: ERROR: Module md_mod is in use by: raid1 raid10 raid0 raid456".

So the solution is:

- Stop all RAID arrays so that the raid modules can be unloaded:
  - sudo mdadm --stop /dev/mdx /dev/mdy, etc

- Remove the 4 raid modules, then md_mod.
  - sudo rmmod raid1 raid10 raid0 raid456 md_mod

* What if you blacklisted the raid modules

I modified /etc/modprobe.d/mdadm.conf and added these lines, then rebuilt the init ram disk, then rebooted.

blacklist raid1
blacklist raid10
blacklist raid0
blacklist raid456
blacklist md_mod

The result was that the RAID arrays block devices were STILL created, but are inactive. /proc/mdstat also shows no raid "personalities" available.

$ ls -l /dev/md*
brw-rw---- 1 root disk 9, 127 Aug 28 21:45 /dev/md127
brw-rw---- 1 root disk 9,  22 Aug 28 21:45 /dev/md22

$ cat /proc/mdstat 
Personalities : 
md22 : inactive sda1[1] sdc1[0]
      200705 blocks super 1.2
       
md127 : inactive sda2[1] sdc2[0]
      197953 blocks super 1.2
       
unused devices: <none>

Looking at the loaded modules "sudo lsmod | egrep 'raid|md' | sort", the md_mod is STILL loaded, but none of the raid modules were loaded. As mentioned by g4sra, blacklisting doesn't prevent other ways of loading the md_mod.

#19 Re: Installation » [SOLVED] Should the live desktop auto start RAID arrays? » 2025-08-29 03:04:46

@fsmithred - You asked if anyone has the file "/etc/modprobe.d/mdadm.conf".

Ans: Yep, I also have that file on my excalibur PC, and I also see it in the init ram disk.

I ran a quick test to see if I can see what effects "start_ro" has. "start_ro" has an effect on the RAID arrays I defined in /etc/mdadm/mdadm.conf, but it has no effect on the auto-started arrays at md127, md126. The setting will set whether or not the explicitly defined arrays are started with "auto-read-only" or not. For auto-started arrays at md127, the array is always started with "auto-read-only". I didn't dig any further to see what "auto-read-only" means, but the setting DOES show an effect.

When the "start_ro=1" line is defined (md22 is the raid number I explicitly defined in mdadm.conf):

$ cat /proc/mdstat 
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] [raid10] 
md127 : active (auto-read-only) raid1 sdc2[1] sdb2[0]
      98944 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

md22 : active (auto-read-only) raid1 sdc1[1] sdb1[0]
      100352 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

unused devices: <none>

When the "start_ro=1" line is commented out:

$ cat /proc/mdstat
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] [raid10] 
md22 : active raid1 sda1[1] sdc1[0]
      100352 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

md127 : active (auto-read-only) raid1 sda2[1] sdc2[0]
      98944 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

unused devices: <none>

Next, I'll play around with blacklisting the md module. If I find out something new that hasn't already been mentioned, I'll post my test results.

#20 Re: Installation » [SOLVED] Excalibur net install 20250823 not installing rsyslog » 2025-08-29 02:29:10

OK, thanks for the reply. I have installed rsyslog manually on my Excalibur PC, and a quick check shows no obvious problems. I wanted to make sure it wasn't an oversight in the Excalibur installer.

I'll marked this as solved, since it's a known issue.

#21 Installation » [SOLVED] Excalibur net install 20250823 not installing rsyslog » 2025-08-28 08:15:09

Eeqmcsq
Replies: 9

I mentioned this problem in the RAID auto start thread, but it may have gotten lost in the deluge of testing. Since this problem isn't related to RAID, I'm creating a new post to track this problem.

- Installer iso: devuan_excalibur_6.0-20250823_amd64_netinstall.iso
- Download directory: https://files.devuan.org/devuan_excalib … aller-iso/

* Problem

After installing the netinstall to my PC, /var/log/syslog is not found. I discovered that the package rsyslog isn't installed. Is this a problem with the installer, or is rsyslog no longer installed by default? If not, what logs would I look at?

Note that in the Excalibur live desktop, rsyslog IS installed.

#22 Re: Installation » [SOLVED] Should the live desktop auto start RAID arrays? » 2025-08-28 05:41:37

@fsmithred: Tonight, I tested your two images:
  - devuan_excalibur_6.0-preview-2025-08-25_0923_amd64_desktop-live.iso
  - devuan_excalibur_6.0-preview-2025-08-25_1056_amd64_desktop-live.iso

First some quick replies to your comments:

- You said the 0923 iso "somehow got the default /etc/default/mdadm with START_DAEMON=true".
  - Ans: I didn't see that on the 0923 iso. It was START_DAEMON=false, the same as the "2025-08-13" that I tested a few days ago.

- You also asked if I could "still use the mdadm command without the service running?"
  - Ans: Yes, I was able to run the mdadm command in the 0923 iso. These two examples worked:
    - sudo mdadm --examine --scan
    - sudo mdadm --stop /dev/md127

* Test results for 0923 and 1056 were the same

  - /proc/mdstat showed that the RAID arrays auto started at md127, md126.
  - /etc/default/mdadm has START_DAEMON=false
  - Checking "ps -ef | grep mdadm", I didn't see any "mdadm --monitor". The mdadm monitoring/reporting daemon was NOT running.
  - Can I run the mdadm cmd? Yes, these cmds worked:
    - sudo mdadm --examine --scan
      - listed both of my test RAID arrays
    - sudo mdadm --stop /dev/md127

* Investigation

So why did the RAID arrays auto start? Here are my investigation notes. Note that I tested using legacy boot.

- /etc/mdadm/mdadm.conf does contain the lines "AUTO -all" and the dummy line "ARRAY <ignore>" with UUID of all zeroes. This looks OK.

- I extracted the contents of /boot/initrd.img.-6.12.38+deb13-amd64. This init ram disk in the live desktop apparently has 4 total archives concatenated together, with the last one being compressed.

(cpio -id ; cpio -id ; cpio -id ; zstdcat | cpio -id) < /boot/initrd.img-6.12.38+deb13-amd64

   And the contents of ./etc/mdadm/mdadm.conf contains the two lines "AUTO -all" and "ARRAY <ignore>". So this looks OK.
   
   And yet, the live-desktop STILL auto started my test RAID arrays???

- Checking the output of dmesg for clues, the second line shows the "Command line" args. And one of the lines show initrd=/live/initrd.img.

  Aha, /live looks like something on the .iso image.

- I mounted the file "devuan_excalibur_6.0-preview-2025-08-25_0923_amd64_desktop-live.iso" to the local file system, copied ./live/initrd.img to a temp directory and extracted it using the same 3* cpio + zstdcat|cpio, and examined ./etc/mdadm/mdadm.conf. The contents look like a default file. No "AUTO -all" or dummy "ARRAY <ignore>" lines.

- Conclusion: This would explain why the RAID arrays got autostarted. The live-desktop loaded THIS init ram disk that's located on the .iso.

- More info: The legacy boot menu comes from the iso image file "./isolinux/isolinux.cfg", which adds the "initrd" and other args to the boot cmd line.

label toram
    menu label devuan-live (amd64) (load to RAM)
    linux /live/vmlinuz
    append initrd=/live/initrd.img boot=live username=devuan toram  nottyautologin

* Test and investigation (UEFI live desktop)
- The test results and investigation results were the same, except that dmesg does NOT contain an "initrd" arg, so there's no clue about what init ram disk was loaded.

- Mounting the .iso again and checking "./boot/grub/grub.cfg", the menu entry contains a separate initrd line, which refers to the same "/live/initrd.img".

menuentry "devuan-live (load to RAM)" {
    set gfxpayload=keep
    linux   /live/vmlinuz boot=live username=devuan toram nottyautologin 
    initrd  /live/initrd.img
}

So both the UEFI and legacy boot must be loading the same init ram disk on the .iso file, which doesn't contain the two lines "AUTO -all" and "ARRAY <ignore>".

#23 Re: Installation » [SOLVED] Should the live desktop auto start RAID arrays? » 2025-08-27 05:25:08

@g4sra - Yep. I've tried 2 of your 3 suggestions. Adding raid=noautodetect to the boot menu's kernel options didn't disable autostarting the RAID. Adding nodmraid also had no effect. The dmraid test output can be found in this comment:

I did NOT try blacklisting the md modules, since I had no idea how to blacklist a module. That's on my list of things to investigate.

And just to make sure I didn't screw anything up in my previous tests, I retested several combinations of raid=noautodetect and nodmraid in both the Excalibur live desktop and my Excalibur PC. In all cases, the RAID arrays auto started at md127, md126.

These were the test cases I ran tonight.

  - default: No kernel cmd line changes
  - Added: raid=noautodetect
  - Added: nodmraid
  - Added: nodmraid=1
  - Added: raid=noautodetect nodmraid
  - Added: raid=noautodetect nodmraid=1

For the live desktop, I used "devuan_excalibur_6.0-preview-2025-08-13_0014_amd64_desktop-live.iso". For the PC installation, I set my mdadm.conf to this and updated the init ram disk.

  #AUTO -all
  ARRAY <ignore> UUID=00000000:00000000:00000000:00000000

During the tests, I confirmed the cmd line args by checking /proc/cmdline.

#24 Re: Installation » [SOLVED] Should the live desktop auto start RAID arrays? » 2025-08-26 03:57:03

@fsmithred: I haven't tested your two isos yet. Instead, I satisified my curiosity by investigating exactly what this "START_DAEMON" settings does and how it affects mdadm.

The START_DAEMON option is used in the script /etc/init.d/mdadm to determine if it should start mdadm with --monitor. According to the man pages, the monitor mode periodically checks the arrays to check for status changes and reports these events by logging to the syslog, sending a mail alert, etc.

$ ps -ef | grep mdadm
root      1434     1  0 19:57 ?        00:00:00 /sbin/mdadm --monitor --pid-file /run/mdadm/monitor.pid --daemonise --scan --syslog

At first, I thought this option was harmless. Then I see this in the man pages:

MONITOR MODE
  <...>
  As well as reporting events, mdadm may move a spare drive from one array to another if they are in the same spare-group or domain and if the  destination  array  has  a
  failed drive but no spares.

That's definitely a NO for a live desktop.

Otherwise, in my tests, turning off the START_DAEMON didn't affect my mdadm cmd line commands.

* Other issues

While testing the START_DAEMON setting to see if "mdadm --monitor" really writes to the syslog, I couldn't find /var/log/syslog on my Excalibur PC! The package "rsyslog" wasn't installed. Is that an oversight in the Excalibur netinstall iso, or is rsyslog no longer installed by default? If not, what are the alternative log files?

On a side note, my tests show that mdadm --monitor DOES log to the syslog when it detects a failed drive or a drive added back to a degraded array. I used mdadm --fail, --remove, --add, and observed the syslog.

#25 Re: Installation » [SOLVED] Should the live desktop auto start RAID arrays? » 2025-08-26 03:27:20

@g4sra: Here are my test results of adding nodmraid to the boot menu kernel options. Short answer: no difference. My test raid arrays are still auto started in the Excalibur live desktop at md126/md127.

Test file: devuan_excalibur_6.0-preview-2025-08-13_0014_amd64_desktop-live.iso

At the initial menu, I edited the boot options and included "nodmraid", and "nodmraid=1". Then I ran the live desktop.

- Test 1: No cmd line change:

devuan@devuan:~$ cat /proc/cmdline 
BOOT_IMAGE=/live/vmlinuz initrd=/live/initrd.img boot=live username=devuan toram  nottyautologin

devuan@devuan:~$ cat /proc/mdstat
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] [raid10] 
md126 : active (auto-read-only) raid1 sda2[1] sdc2[0]
      98944 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

md127 : active (auto-read-only) raid1 sda1[1] sdc1[0]
      100352 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

unused devices: <none>

- Test 2, cmd line change, added "nodmraid":

devuan@devuan:~$ cat /proc/cmdline 
BOOT_IMAGE=/live/vmlinuz initrd=/live/initrd.img boot=live username=devuan toram  nottyautologin nodmraid

devuan@devuan:~$ cat /proc/mdstat
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] [raid10] 
md126 : active (auto-read-only) raid1 sda2[1] sdc2[0]
      98944 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

md127 : active (auto-read-only) raid1 sda1[1] sdc1[0]
      100352 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

unused devices: <none>

- Test 3, cmd line change, added "nodmraid=1":

devuan@devuan:~$ cat /proc/cmdline 
BOOT_IMAGE=/live/vmlinuz initrd=/live/initrd.img boot=live username=devuan toram  nottyautologin nodmraid=1

devuan@devuan:~$ cat /proc/mdstat 
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] [raid10] 
md126 : active (auto-read-only) raid1 sdb1[1] sda1[0]
      100352 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

md127 : active (auto-read-only) raid1 sdb2[1] sda2[0]
      98944 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

unused devices: <none>

================================

@stargate-sg1-cheyenne-mtn:

Although mdadm may have been in Debian/Ubuntu since the 2000s, it occurred to me that the live desktops might not have mdadm installed or running. To satisfy my curiosity, I tested various Devuan live desktops on my test PC with my 2 test RAID arrays to see when the live desktop started auto starting the RAID arrays.

Short answer: Beowulf, based on Debian 10 Buster.

- jessie (based on Debian 8 Jessie)
  - devuan_jessie_1.0.0_amd64_desktop-live.iso
  - /proc/mdstat      : File not found.
  - sudo which mdadm  : mdadm not found
  - lsmod | grep raid : No raid0, raid1, etc. modules.

- ascii (based on Debian 9 Stretch)
  - devuan_ascii_2.0.0_amd64_desktop-live.iso
  - /proc/mdstat      : File not found.
  - sudo which mdadm  : mdadm not found
  - lsmod | grep raid : No raid0, raid1, etc. modules.

- beowulf (based on Debian 10 Buster)
  - devuan_beowulf_3.1.1_amd64_desktop-live.iso
  - /proc/mdstat      : File found. RAID arrays auto started at md127, md126.
  - sudo which mdadm  : /sbin/mdadm
  - lsmod | grep raid : raid0, raid1, etc. modules found

So that might explain why there hasn't been a history of complaints about the live desktop ruining RAID arrays - they weren't auto started until just a few years ago.

Board footer

Forum Software