Skip to content

Commit 5f88464

Browse files
authored
fix(iso): disable suspend during installation and initial setup (#3331)
1 parent c783ec1 commit 5f88464

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

iso_files/configure_iso_anaconda.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ welcome-dialog-last-shown-version='4294967295'
2020
favorite-apps = ['anaconda.desktop', 'documentation.desktop', 'discourse.desktop', 'org.mozilla.firefox.desktop', 'org.gnome.Nautilus.desktop']
2121
EOF
2222

23+
# Disable suspend/sleep during live environment and initial setup
24+
# This prevents the system from suspending during installation or first-boot user creation
25+
tee /usr/share/glib-2.0/schemas/zz3-bluefin-installer-power.gschema.override <<EOF
26+
[org.gnome.settings-daemon.plugins.power]
27+
sleep-inactive-ac-type='nothing'
28+
sleep-inactive-battery-type='nothing'
29+
sleep-inactive-ac-timeout=0
30+
sleep-inactive-battery-timeout=0
31+
32+
[org.gnome.desktop.session]
33+
idle-delay=uint32 0
34+
EOF
35+
2336
# don't autostart gnome-software session service
2437
rm -f /etc/xdg/autostart/org.gnome.Software.desktop
2538

iso_files/configure_lts_iso_anaconda.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ welcome-dialog-last-shown-version='4294967295'
2020
favorite-apps = ['anaconda.desktop', 'documentation.desktop', 'discourse.desktop', 'org.mozilla.firefox.desktop', 'org.gnome.Nautilus.desktop']
2121
EOF
2222

23+
# Disable suspend/sleep during live environment and initial setup
24+
# This prevents the system from suspending during installation or first-boot user creation
25+
tee /usr/share/glib-2.0/schemas/zz3-bluefin-installer-power.gschema.override <<EOF
26+
[org.gnome.settings-daemon.plugins.power]
27+
sleep-inactive-ac-type='nothing'
28+
sleep-inactive-battery-type='nothing'
29+
sleep-inactive-ac-timeout=0
30+
sleep-inactive-battery-timeout=0
31+
32+
[org.gnome.desktop.session]
33+
idle-delay=uint32 0
34+
EOF
2335

2436
glib-compile-schemas /usr/share/glib-2.0/schemas
2537

0 commit comments

Comments
 (0)