Calamares postinstall.sh script

I’m customizing Calamares. In the umount.conf module there is a line

exec: "/usr/lib/calamares/postinstall.sh"

So at the end of the installation process the postinstall.sh script is launched from the umount.conf module and do modifications (in my case launching the paxrat utility). But in my case it is NOT launched. I even added debug information

#!/bin/bash

echo paxrat >> /tmp/check
/sbin/paxrat
echo paxrat $? >> /tmp/check

and this output must be written in the check file inside the tmp directory or the /tmp/calamares-root-****/tmp/ (chroot).

But the script is not launched, so nothing happens. And I cannot add debugging information as the script is not launched.

Help please.

Where did that line come from? It does not appear to be in the default version of this file. https://github.com/endeavouros-team/calamares/blob/calamares/src/modules/umount/umount.conf

Does umount.conf even support arbitrary script execution like this?

An easy way to achieve your desired result would be to add a user_commands.bash file and run your process from it. You can find guidance in this wiki article: https://discovery.endeavouros.com/installation/customizing-the-endeavouros-install-process

This line was alredy there.

Also in the older version of Calamares

it is present and successfully launches

What distro are you installing?

A Debian based distro

The Calamares umount module has no support for running scripts.

Perhaps that is a customization that the distro has added and it isn’t working?

Mabe it is a customization, as you say.

Thanks

1 Like

Perhaps whatever distro you’re trying to install (you’ve never stated which one), their forum might have more specific info to assist you. Especially if it’s a distro-specific customization.