Skip to content

Commit ca79f9e

Browse files
authored
Merge pull request #1129 from Fourdee/testing
v155 (02/09/17) **New Image:** Rock64 | Now available for beta testing: https://github.com/Fourdee/DietPi/issues/1102#issuecomment-325131437 **Changes / Improvements / Optimizations:** General | RPi: Kernel updated to 4.9.40. Includes improved driver support for Allo Piano and DiGi One: raspberrypi/linux#2149 General | dietpi.txt: Added an dev option to force a resize + expansion on rootfs partition for next boot (fs_force_resize=1) General | RT kernel for RPi is now available, can be installed with "/DietPi/dietpi/func/dietpi-set_hardware kernel dietpi_rpi_rt" General | Reworked the disabled modules for Sparky. Disables touchscreen and GPU modules (thanks @sudeep). General | Sparky Image updated to Stretch, includes kernel update for DSD256/512 support. DietPi-Config | Networking > WiFi: Added a feature which will monitor the Wifi connection and automatically reconnect, if the gateway is unavailable (eg: connection drop): https://github.com/Fourdee/DietPi/issues/1074 DietPi-Software | Home Assistant: Now available for installation. Many thanks to @sytone for adding this: https://github.com/Fourdee/DietPi/pull/1087 DietPi-Software | Sabnzbd: Updated to 2.1.0 for new installations only: https://github.com/Fourdee/DietPi/issues/865#issuecomment-319110395 DietPi-Software | Kodi: Now installs avahi-daemon by default: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2148&p=8323#p8316 DietPi-Software | sabnzbd: Updated to latest version (2.2.1), existing installations will need to uninstall/reinstall to update: https://github.com/Fourdee/DietPi/issues/865#issuecomment-325454351 **Bug fixes:** General | Auto Swapfile generation: Size is now set to "2048 - total memory" to prevent out of memory errors during Koel installations and in general. "1024 - total RAM" was previous. All systems will have swapfile regenerated during this patch, you can change this afterwards in dietpi-config > advanced options: https://github.com/Fourdee/DietPi/issues/1126 General | (Odroid C2): Resolved an issue where APT would fail to continue, due to deb-multimedia removing ARMv8 (ARM64) packages: https://github.com/Fourdee/DietPi/issues/1096 General | Fix error log on disabled IPv6 (thanks @MichaIng): https://github.com/Fourdee/DietPi/pull/1120/ DietPi-AutoStart | Resolved an issue where OPi devices would fail to execute selected autostart option: https://github.com/Fourdee/DietPi/issues/1109 DietPi-BugReport | Increased max upload size from 50MB to 80MB: https://github.com/Fourdee/DietPi/issues/1086#issuecomment-317724186 DietPi-Config | Corrected firmware upgrade code for OrangePi devices: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2149&p=8295#p8295 DietPi-Software | Mumble/MurMur: Resolved an issue where superuser password was not being set during installation: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2024#p8084 DietPi-Software | Tondio: Resolved an issue where the installation would fail due to lack of libjpeg8 packages, on Debian repos. Packages now hosted on dietpi.com: https://github.com/Fourdee/DietPi/issues/1101 DietPi-Software | Sparky SBC: WiFi Hotspot now triggers the RTL driver during install. This is hard coded, to configure for the official Allo WiFi dongle. DietPi-Software | Mopidy: Resolved an issue where the libary would fail to update. Many thanks to Sciamano: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2112 DietPi-Software | Emby: Resolved an issue where unavailable libjpeg8 packages from Jessie/Stretch, would cause this installation to fail: https://github.com/Fourdee/DietPi/issues/1128#issuecomment-326743471
2 parents e76ec21 + a00af71 commit ca79f9e

23 files changed

+696
-125
lines changed

CHANGELOG.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
v155
2+
(02/09/17)
3+
4+
New Image:
5+
Rock64 | Now available for beta testing: https://github.com/Fourdee/DietPi/issues/1102#issuecomment-325131437
6+
7+
Changes / Improvements / Optimizations:
8+
General | RPi: Kernel updated to 4.9.40. Includes improved driver support for Allo Piano and DiGi One: https://github.com/raspberrypi/linux/pull/2149
9+
General | dietpi.txt: Added an dev option to force a resize + expansion on rootfs partition for next boot (fs_force_resize=1)
10+
General | RT kernel for RPi is now available, can be installed with "/DietPi/dietpi/func/dietpi-set_hardware kernel dietpi_rpi_rt"
11+
General | Reworked the disabled modules for Sparky. Disables touchscreen and GPU modules (thanks @sudeep).
12+
General | Sparky Image updated to Stretch, includes kernel update for DSD256/512 support.
13+
DietPi-Config | Networking > WiFi: Added a feature which will monitor the Wifi connection and automatically reconnect, if the gateway is unavailable (eg: connection drop): https://github.com/Fourdee/DietPi/issues/1074
14+
DietPi-Software | Home Assistant: Now available for installation. Many thanks to @sytone for adding this: https://github.com/Fourdee/DietPi/pull/1087
15+
DietPi-Software | Sabnzbd: Updated to 2.1.0 for new installations only: https://github.com/Fourdee/DietPi/issues/865#issuecomment-319110395
16+
DietPi-Software | Kodi: Now installs avahi-daemon by default: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2148&p=8323#p8316
17+
DietPi-Software | sabnzbd: Updated to latest version (2.2.1), existing installations will need to uninstall/reinstall to update: https://github.com/Fourdee/DietPi/issues/865#issuecomment-325454351
18+
19+
Bug fixes:
20+
General | Auto Swapfile generation: Size is now set to "2048 - total memory" to prevent out of memory errors during Koel installations and in general. "1024 - total RAM" was previous. All systems will have swapfile regenerated during this patch, you can change this afterwards in dietpi-config > advanced options: https://github.com/Fourdee/DietPi/issues/1126
21+
General | (Odroid C2): Resolved an issue where APT would fail to continue, due to deb-multimedia removing ARMv8 (ARM64) packages: https://github.com/Fourdee/DietPi/issues/1096
22+
General | Fix error log on disabled IPv6 (thanks @MichaIng): https://github.com/Fourdee/DietPi/pull/1120/
23+
DietPi-AutoStart | Resolved an issue where OPi devices would fail to execute selected autostart option: https://github.com/Fourdee/DietPi/issues/1109
24+
DietPi-BugReport | Increased max upload size from 50MB to 80MB: https://github.com/Fourdee/DietPi/issues/1086#issuecomment-317724186
25+
DietPi-Config | Corrected firmware upgrade code for OrangePi devices: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2149&p=8295#p8295
26+
DietPi-Software | Mumble/MurMur: Resolved an issue where superuser password was not being set during installation: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2024#p8084
27+
DietPi-Software | Tondio: Resolved an issue where the installation would fail due to lack of libjpeg8 packages, on Debian repos. Packages now hosted on dietpi.com: https://github.com/Fourdee/DietPi/issues/1101
28+
DietPi-Software | Sparky SBC: WiFi Hotspot now triggers the RTL driver during install. This is hard coded, to configure for the official Allo WiFi dongle.
29+
DietPi-Software | Mopidy: Resolved an issue where the libary would fail to update. Many thanks to Sciamano: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2112
30+
DietPi-Software | Emby: Resolved an issue where unavailable libjpeg8 packages from Jessie/Stretch, would cause this installation to fail: https://github.com/Fourdee/DietPi/issues/1128#issuecomment-326743471
31+
32+
-----------------------------------------------------------------------------------------------------------
33+
134
v154
235
(23/07/17)
336

PREP_SYSTEM_FOR_DIETPI.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ _EOF_
4949
#+Meveric images
5050
rm /etc/apt/sources.list.d/deb-multimedia.list
5151

52-
#Remove following Jessie
52+
#Remove following All
5353
apt-get clean
5454
apt-get update
55-
apt-get purge -y gpsd ppp libboost-iostreams* sgml-base xml-core usb-modeswitch* libpng* cpp-* cpp ntpdate bluez bluetooth rsync dialog dhcpcd5 libsqlite* lua5.1 netcat-* make makedev ncdu plymouth openresolv shared-mime-in* tcpd strace tasksel* wireless-* xdg-user-dirs triggerhappy python* v4l-utils traceroute xz-utils ucf xauth zlib1g-dev xml-core aptitude* avahi-daemon rsyslog logrotate man-db manpages vim vim-common vim-runtime vim-tiny mc mc-data
55+
apt-get purge -y jq xxd iperf3 gdisk gpsd ppp libboost-iostreams* sgml-base xml-core usb-modeswitch* libpng* cpp-* cpp ntpdate bluez bluetooth rsync dialog dhcpcd5 libsqlite* lua5.1 netcat-* make makedev ncdu plymouth openresolv shared-mime-in* tcpd strace tasksel* wireless-* xdg-user-dirs triggerhappy python* v4l-utils traceroute xz-utils ucf xauth zlib1g-dev xml-core aptitude* avahi-daemon rsyslog logrotate man-db manpages vim vim-common vim-runtime vim-tiny mc mc-data
5656

5757
#+Desktop images (Mostly desktop packages, but apply to non-desktop images also):
5858
apt-get purge -y libpod-* libpeas-* isc-dhcp-server gnome-* fonts-dejavu* eject dnsmasq* dns-root-data colord-data libjasper* libjson* libwbclient* libwayland* golang-* libavahi* libtext* libweb* libpcsclite1 libxau6* libxc* dictionaries-* libgtk* miscfiles minicom lrzsz lxmenu-* x11-* zenity* yelp-*
@@ -110,6 +110,7 @@ chmod +x -R /boot
110110
userdel -f pi
111111
userdel -f test #armbian
112112
userdel -f odroid
113+
userdel -f rock64
113114

114115
#Remove folders (now in finalise script)
115116

@@ -345,13 +346,6 @@ timeout 10;
345346
retry 4;
346347
_EOF_
347348

348-
#Add ipv6 flags DietPi uses to disable IPV6 if set.
349-
cat << _EOF_ >> /etc/sysctl.conf
350-
net.ipv6.conf.all.disable_ipv6 = 0
351-
net.ipv6.conf.default.disable_ipv6 = 0
352-
net.ipv6.conf.lo.disable_ipv6 = 0
353-
_EOF_
354-
355349
#Hosts
356350
cat << _EOF_ > /etc/hosts
357351
127.0.0.1 localhost
@@ -464,6 +458,9 @@ LC_ALL=en_GB.UTF-8
464458
LANG=en_GB.UTF-8
465459
_EOF_
466460

461+
#Prefer to use wlan/eth naming for networked devices (eg: stretch)
462+
ln -s /dev/null /etc/systemd/network/99-default.link
463+
467464

468465
#??? Native PC, add i386 support by default
469466
dpkg --add-architecture i386
@@ -474,7 +471,11 @@ echo -e "blacklist bmp085" > /etc/modprobe.d/bmp085.conf
474471

475472
#??? Sparky SBC ONLY: Blacklist GPU and touch screen modules: https://github.com/Fourdee/DietPi/issues/699#issuecomment-271362441
476473
cat << _EOF_ > /etc/modprobe.d/disable_sparkysbc_touchscreen.conf
477-
blacklist ctp_gsl3680
474+
blacklist owl_camera
475+
blacklist gsensor_stk8313
476+
blacklist ctp_ft5x06
477+
blacklist gsensor_bma222
478+
blacklist gsensor_mir3da
478479
_EOF_
479480

480481
cat << _EOF_ > /etc/modprobe.d/disable_sparkysbc_gpu.conf

boot_xu4.ini

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ setenv macaddr "00:1e:06:61:7a:72"
1212
# --------------------------------
1313
setenv bootrootfs "console=tty1 root=UUID=a4f12232-1670-43f4-8eca-49bfbe4d01ee rootwait ro fsck.repair=yes"
1414

15-
# boot commands
16-
setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb; bootz 0x40008000 0x42000000 0x44000000"
17-
1815
# --- Screen Configuration for HDMI --- #
1916
setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080.bin"
2017

@@ -117,8 +114,19 @@ setenv hdmi_tx_res "0"
117114

118115
setenv hdmi_phy_control "hdmi_tx_amp_lvl=${hdmi_tx_amp_lvl} hdmi_tx_lvl_ch0=${hdmi_tx_lvl_ch0} hdmi_tx_lvl_ch1=${hdmi_tx_lvl_ch1} hdmi_tx_lvl_ch2=${hdmi_tx_lvl_ch2} hdmi_tx_emp_lvl=${hdmi_tx_emp_lvl} hdmi_clk_amp_lvl=${hdmi_clk_amp_lvl} hdmi_tx_res=${hdmi_tx_res} HPD=${HPD} vout=${vout}"
119116

117+
# Load kernel, initrd and dtb in that sequence
118+
fatload mmc 0:1 0x40008000 zImage
119+
fatload mmc 0:1 0x42000000 uInitrd
120+
fatload mmc 0:1 0x44000000 exynos5422-odroidxu3.dtb
121+
122+
# set FDT address
123+
fdt addr 0x44000000
124+
125+
if test "${cecenable}" = "false"; then fdt rm /cec@101B0000; fi
126+
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi
127+
120128
# final boot args
121-
setenv bootargs "${bootrootfs} ${videoconfig} smsc95xx.macaddr=${macaddr} governor=${governor} ${hdmi_phy_control}"
122-
# drm.debug=0xff
129+
setenv bootargs "${bootrootfs} ${videoconfig} smsc95xx.macaddr=${macaddr} governor=${governor} ${hdmi_phy_control} ${hid_quirks}"
130+
# drm.debug=0xff"
123131
# Boot the board
124-
boot
132+
bootz 0x40008000 0x42000000 0x44000000

dietpi.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,8 @@ dietpi_nextcloud_username=admin
212212
gitbranch=master
213213
gitforkowner=Fourdee
214214

215+
#Forces a partition resize + expansion of rootfs on next boot. (0=disabled, 1=enabled)
216+
fs_force_resize=0
217+
215218
# - Max size of rootfs resize (%)
216219
rootfs_resize_limit=100

dietpi/.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
154
1+
155

dietpi/boot

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
DISTRO=0
2929
HW_CPUID=0
3030

31+
FS_FORCED_EXPANSION=$(cat /DietPi/dietpi.txt | grep -m1 '^fs_force_resize=' | sed 's/.*=//')
32+
3133
# -3 = first boot / -2 = partition / -1 = filesystem / 0 = run dietpi-software at login / 1 = completed
3234
DIETPI_INSTALL_STAGE=$(cat /DietPi/dietpi/.install_stage)
3335

@@ -92,10 +94,11 @@
9294
fi
9395
}
9496

95-
Partition_SD(){
97+
FS_Partition(){
9698

9799
local rootfs_resize_limit=$(cat /DietPi/dietpi.txt | grep -m1 '^rootfs_resize_limit=' | sed 's/.*=//')
98100

101+
local target_partition=$(findmnt / -o source -n | sed 's/.*p//')
99102
local target_dev=$(findmnt / -o source -n)
100103

101104
# - MMCBLK[0-9]p[0-9] scrape
@@ -112,17 +115,17 @@
112115

113116
if (( $rootfs_resize_limit < 100 )); then
114117

115-
parted -s $target_dev unit % resizepart 2 $rootfs_resize_limit% || parted $target_dev unit % resizepart 2 Yes $rootfs_resize_limit%
118+
parted -s $target_dev unit % resizepart $target_partition $rootfs_resize_limit% || parted $target_dev unit % resizepart $target_partition Yes $rootfs_resize_limit%
116119

117120
else
118121

119122
cat << _EOF_ | fdisk $target_dev
120123
p
121124
d
122-
2
125+
$target_partition
123126
n
124127
p
125-
2
128+
$target_partition
126129
$(parted $target_dev -ms unit s p | grep ':ext4::;' | sed 's/:/ /g' | sed 's/s//g' | awk '{ print $2 }')
127130
128131
p
@@ -134,7 +137,7 @@ _EOF_
134137

135138
}
136139

137-
Expand_SD(){
140+
FS_Expand(){
138141

139142
#Resize RootFS to new partition size
140143
local target_dev=$(findmnt / -o source -n)
@@ -381,16 +384,36 @@ _EOF_
381384
# Init
382385
Run_Init
383386

387+
#----------------------------------------------------------------
388+
#Filesystem expansion only (eg: for pre-installed images)
389+
if (( $FS_FORCED_EXPANSION == 1 )); then
390+
391+
FS_Partition
392+
393+
sed -i '/fs_force_resize=/c\fs_force_resize=2' /DietPi/dietpi.txt
394+
395+
reboot
396+
384397
#----------------------------------------------------------------
385398
#Normal Boot
386-
if (( $DIETPI_INSTALL_STAGE == 1 )); then
399+
elif (( $DIETPI_INSTALL_STAGE == 1 )); then
400+
401+
if (( $FS_FORCED_EXPANSION == 2 )); then
402+
403+
FS_Expand
404+
405+
sed -i '/fs_force_resize=/c\fs_force_resize=0' /DietPi/dietpi.txt
406+
407+
fi
387408

388409
Wait_For_Valid_Network_Connection
389410

390411
if (( $( cat /DietPi/dietpi.txt | grep -ci -m1 '^dietpi_check_for_updates=1') )); then
412+
391413
#Check for DietPi updates (+thread)
392414
echo -e "$(date) | +Thread: checking for DietPi-Updates" >> "$FP_LOGFILE"
393415
/DietPi/dietpi/dietpi-update 2 &> /dev/null &
416+
394417
fi
395418

396419
/DietPi/dietpi/dietpi-banner 1
@@ -452,8 +475,7 @@ _EOF_
452475

453476
fi
454477

455-
echo -e " Expanding SD/Flash partition. Please wait..."
456-
Partition_SD
478+
FS_Partition
457479

458480
echo -2 > /DietPi/dietpi/.install_stage
459481

@@ -464,7 +486,7 @@ _EOF_
464486
elif (( $DIETPI_INSTALL_STAGE == -2 )); then
465487

466488
#Expand rootFS
467-
Expand_SD
489+
FS_Expand
468490
echo -1 > /DietPi/dietpi/.install_stage
469491

470492
#Enable/Create swapfile.

dietpi/dietpi-backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113

114114
;;
115115
Help)
116-
whiptail --title "DietPi-Backup Help" --msgbox "DietPi-Backup is a program that allows you to Backup and Restore your DietPi system.\n\nIf you have broken your system, or want to reset your system to an eariler date, this can all be done with DietPi-Backup.\n\nSimply choose a location where you want to save and restore your backups from, then, select Backup or Restore.\n\nMore information:\n - http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=256#p255" --backtitle "$WHIP_BACKTITLE" 20 75
116+
whiptail --title "DietPi-Backup Help" --msgbox "DietPi-Backup is a program that allows you to Backup and Restore your DietPi system.\n\nIf you have broken your system, or want to reset your system to an earlier date, this can all be done with DietPi-Backup.\n\nSimply choose a location where you want to save and restore your backups from, then, select Backup or Restore.\n\nMore information:\n - http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=256#p255" --backtitle "$WHIP_BACKTITLE" 20 75
117117
;;
118118
Backup)
119119
WHIP_TITLE=' Start backup? '

dietpi/dietpi-bugreport

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515

1616
#Force en_GB Locale for whole script. Prevents incorrect parsing with non-english locales.
1717
LANG=en_GB.UTF-8
18-
18+
1919
#Ensure we are in users home dir: https://github.com/Fourdee/DietPi/issues/905#issuecomment-298223705
2020
cd "$HOME"
2121

2222
# - byte
23-
UPLOAD_FILESIZE_LIMIT=52428800
23+
UPLOAD_FILESIZE_LIMIT=83886080
2424
UPLOAD_FILESIZE=0
2525

2626
DATE_CURRENT=$(date +"%d-%m-%Y")

0 commit comments

Comments
 (0)