| 1 | #!/bin/sh |
| 2 | ### |
| 3 | # Wrapper for running calamares on Debian live media |
| 4 | ### |
| 5 | |
| 6 | # Stale file left behind by live-build that messes with partitioning |
| 7 | sudo mv /etc/fstab /etc/fstab.orig.calamares |
| 8 | |
| 9 | # Allow Calamares to scale the window for hidpi displays |
| 10 | # This is fixed in the Calamares 3.3.0 series, so we can remove this |
| 11 | # once we switch to that |
| 12 | # Upstream commit that will make this obsolete: |
| 13 | # https://github.com/calamares/calamares/commit/e9f011b686a0982fb7828e8ac02a8e0784d3b11f |
| 14 | # Upstream bug: |
| 15 | # https://github.com/calamares/calamares/issues/1945 |
| 16 | # Debian bug: |
| 17 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992162 |
| 18 | export QT_AUTO_SCREEN_SCALE_FACTOR=1 |
| 19 | |
| 20 | # Access control to run calamares as root for xwayland |
| 21 | xhost +si:localuser:root |
| 22 | pkexec calamares |
| 23 | xhost -si:localuser:root |
| 24 | |
| 25 | # Restore stale fstab, for what it's worth |
| 26 | sudo mv /etc/fstab.orig.calamares /etc/fstab |