-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve scripts and minimize dependencies
- Loading branch information
Showing
13 changed files
with
81 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM registry.fedoraproject.org/fedora-minimal:39 | ||
RUN microdnf --assumeyes --setopt='tsflags=nodocs' --setopt='install_weak_deps=False' \ | ||
install bash-completion distribution-gpg-keys python3-pip kiwi-systemdeps-iso-media && \ | ||
pip3 install kiwi==v10.1.1 --break-system-packages && \ | ||
pip3 install kiwi==v10.1.14 --break-system-packages && \ | ||
microdnf --assumeyes clean all && \ | ||
rm /etc/rpm/* -rf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
kiwi-descriptions/root/etc/systemd/system/machine-setup.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Machine system settings | ||
|
||
[Service] | ||
Type=oneshot | ||
Restart=no | ||
RemainAfterExit=no | ||
ExecStart=/usr/local/libexec/remix/machine-setup | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
WantedBy=graphical.target |
12 changes: 12 additions & 0 deletions
12
kiwi-descriptions/root/etc/systemd/user/flatpak-setup.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Flatpak user settings | ||
PartOf=graphical-session.target | ||
|
||
[Service] | ||
Type=oneshot | ||
Restart=no | ||
RemainAfterExit=no | ||
ExecStart=/usr/local/libexec/remix/flatpak-setup | ||
|
||
[Install] | ||
WantedBy=graphical-session.target |
11 changes: 9 additions & 2 deletions
11
kiwi-descriptions/root/usr/local/libexec/remix/flatpak-setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# Flatpak setup commands | ||
echo "Sharing user Gtk settings with apps..." | ||
#!/usr/bin/bash | ||
# | ||
# flatpak: user settings | ||
|
||
echo "Sharing KDE custom Gtk settings with apps" | ||
flatpak override --user --filesystem=xdg-config/gtkrc:ro | ||
flatpak override --user --filesystem=xdg-config/gtkrc-2.0:ro | ||
flatpak override --user --filesystem=xdg-config/gtk-3.0:ro | ||
flatpak override --user --filesystem=xdg-config/gtk-4.0:ro | ||
|
||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1882641 | ||
echo "Inhibit idle when Firefox is playing full screen video" | ||
flatpak override --user --talk-name=org.freedesktop.ScreenSaver org.mozilla.firefox |
4 changes: 2 additions & 2 deletions
4
kiwi-descriptions/root/usr/local/libexec/remix/livesys-cleanup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# livesys cleanup commands | ||
|
||
echo "Cleaning up livesys resources..." | ||
echo "Cleaning up livesys resources" | ||
sudo sh -c 'systemctl disable livesys.service; systemctl disable livesys-late.service; | ||
dnf --assumeyes remove anaconda\* livesys-scripts; | ||
dnf --assumeyes remove anaconda\* livesys-scripts dracut-live; | ||
rm /etc/sysconfig/livesys* -rf; rm /var/lib/livesys -rf' |
12 changes: 12 additions & 0 deletions
12
kiwi-descriptions/root/usr/local/libexec/remix/machine-setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/bash | ||
# | ||
# machine: system settings | ||
|
||
system_product_name="$(dmidecode --string system-product-name)" | ||
if [ "$system_product_name" == "HP 250 G8 Notebook PC" ]; then | ||
# When closing laptop lid airplane mode comes on and won't go off: | ||
# https://bugzilla.redhat.com/show_bug.cgi?id=1628353 | ||
# https://askubuntu.com/questions/965595/why-does-airplane-mode-keep-toggling-on-my-hp-laptop-in-ubuntu-18-04 | ||
echo "HP 250 G8 - Fix airplane mode when closing laptop lid" | ||
setkeycodes e057 240 e058 240 | ||
fi |