Skip to content

Commit 34659c4

Browse files
committed
dietpi-autostart: add Amiberry-Lite option
The service exists already, only enabling it was not possible via dietpi-autostart yet. Also assure headless mode is disabled and assign default GPU memory split, like we do for all (standalone) GUI applications.
1 parent 12e4240 commit 34659c4

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ New images:
55
- Orange Pi 4 LTS | Support and images for the LTS variant of this Orange Pi SBC with Rockchip RK3399 SoC have been added. Many thanks to @Gibbz for implementing this: https://github.com/MichaIng/DietPi/pull/8057
66

77
Enhancements:
8+
- DietPi-AutoStart | An Amiberry-Lite autostart option has been added as ID 3, which enables the amiberry-lite.service to start it early at boot. This works like the Amiberry fast boot option. A "standard boot" option has not been added, since there should be no reason to use it. Many thanks to @thedaemon and @orbitalflower for opening the request: https://dietpi.com/forum/t/25025, https://github.com/MichaIng/DietPi/issues/8061
89
- DietPi-Drive_Manager | Using the drive manager does not recreate /etc/fstab anymore. Instead it will only change, add, or remove a particular entry, when drives are mounted, unmounted, or options changed respectively. That way it is compatible with custom mount options or types manually added to /etc/fstab, and does not overwrite admin intentions.
910
- DietPi-Software | Home Assistant: We migrated from pyenv to uv for installing and managing the HA Python environment. That way, Python does not need to be compiled anymore, saving significant time and resources during (re)installs. Also, the existing Python environment is kept and updated as long as the Python version matches, so that a reinstall does not necessarily reinstall all Python modules. As alignment and to simplify the migration, the install directory has been moved from /home/homeassistant to /opt/homeassistant. The DietPi update does not enforce the Home Assistant migration. You can do this at your convenience via "dietpi-software reinstall 157". As a consequential downside, support for ARMv6 has been removed, since uv's Python builds do not support this architecture, and it cannot be used to compile Python the way pyenv does.
1011

dietpi.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ AUTO_SETUP_WEB_SERVER_INDEX=0
118118
# - Browser preference: 0=None | -1=Firefox | -2=Chromium
119119
AUTO_SETUP_BROWSER_INDEX=-1
120120

121-
# DietPi-Autostart: 0=Console | 7=Console autologin | 1=Kodi | 2=Desktop autologin | 16=Desktop | 4=OpenTyrian | 5=DietPi-CloudShell | 6=Amiberry fast boot | 8=Amiberry standard boot | 9=DDX-Rebirth | 10=CAVA Spectrum | 11=Chromium kiosk | 14=Custom script (background) | 17=Custom script (foreground)
121+
# DietPi-Autostart: 0=Console | 7=Console autologin | 1=Kodi | 2=Desktop autologin | 16=Desktop | 4=OpenTyrian | 5=DietPi-CloudShell | 6=Amiberry fast boot | 8=Amiberry standard boot | 3=Amiberry-Lite | 9=DDX-Rebirth | 10=CAVA Spectrum | 11=Chromium kiosk | 14=Custom script (background) | 17=Custom script (foreground)
122122
# - This will be effective on 2nd boot, after first run update and installs have been done.
123123
# - Related software titles must be installed either on first run installs or via AUTO_SETUP_AUTOMATED=1 + AUTO_SETUP_INSTALL_SOFTWARE_ID (see below).
124124
AUTO_SETUP_AUTOSTART_TARGET_INDEX=0

dietpi/dietpi-autostart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
rm -f /etc/systemd/system/display-manager.service /etc/lightdm/lightdm.conf.d/dietpi-autologin.conf
3838
[[ -d '/etc/lightdm/lightdm.conf.d' ]] && rmdir --ignore-fail-on-non-empty /etc/lightdm/lightdm.conf.d
3939

40-
# - Amiberry
40+
# - Amiberry/Lite
4141
systemctl -q is-enabled amiberry && G_EXEC systemctl --no-reload disable --now amiberry
42+
systemctl -q is-enabled amiberry-lite && G_EXEC systemctl --no-reload disable --now amiberry-lite
4243

4344
# - Custom script
4445
if [[ -f '/etc/systemd/system/dietpi-autostart_custom.service' ]]
@@ -90,6 +91,12 @@ _EOF_
9091
G_EXEC systemctl --no-reload unmask amiberry
9192
G_EXEC systemctl --no-reload enable amiberry
9293

94+
# - Amiberry-Lite
95+
elif (( $ID_AUTOSTART == 3 ))
96+
then
97+
G_EXEC systemctl --no-reload unmask amiberry-lite
98+
G_EXEC systemctl --no-reload enable amiberry-lite
99+
93100
# - LightDM: Install only if startx (a desktop) is already installed. This is re-applied by dietpi-software after install automatically.
94101
elif (( $ID_AUTOSTART == 16 ))
95102
then
@@ -218,6 +225,7 @@ _EOF_
218225
'' '●─ Gaming/Emulation '
219226
'6' ': Amiberry fast boot'
220227
'8' ': Amiberry standard boot'
228+
'3' ': Amiberry-Lite'
221229
'9' ': DXX-Rebirth - Descent 1/2'
222230
'4' ': OpenTyrian'
223231
'' '●─ Other '

dietpi/dietpi-software

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12741,11 +12741,12 @@ _EOF_
1274112741
# RPi: Disable headless mode and raise memory split to default for GUI applications
1274212742
(( $G_HW_MODEL < 10 )) || return 0
1274312743

12744-
# Kodi, Jellyfin, DXX-Rebirth, Amiberry, Chromium, Desktops, OpenTyrian, Moonlight (CLI), Moonlight (GUI), GZDoom
12744+
# Kodi, Jellyfin, DXX-Rebirth, Amiberry, Amiberry-Lite, Chromium, Desktops, OpenTyrian, Moonlight (CLI), Moonlight (GUI), GZDoom
1274512745
(( ${aSOFTWARE_INSTALL_STATE[31]} == 1 ||
1274612746
${aSOFTWARE_INSTALL_STATE[178]} == 1 ||
1274712747
${aSOFTWARE_INSTALL_STATE[112]} == 1 ||
1274812748
${aSOFTWARE_INSTALL_STATE[108]} == 1 ||
12749+
${aSOFTWARE_INSTALL_STATE[10]} == 1 ||
1274912750
${aSOFTWARE_INSTALL_STATE[113]} == 1 ||
1275012751
${aSOFTWARE_INSTALL_STATE[23]} == 1 ||
1275112752
${aSOFTWARE_INSTALL_STATE[24]} == 1 ||
@@ -14930,6 +14931,7 @@ _EOF_
1493014931

1493114932
# Offer to change DietPi-AutoStart option
1493214933
if (( $G_DIETPI_INSTALL_STAGE == 2 )) && ((
14934+
${aSOFTWARE_INSTALL_STATE[10]} == 1 ||
1493314935
${aSOFTWARE_INSTALL_STATE[23]} == 1 ||
1493414936
${aSOFTWARE_INSTALL_STATE[24]} == 1 ||
1493514937
${aSOFTWARE_INSTALL_STATE[25]} == 1 ||

0 commit comments

Comments
 (0)