Skip to content
Permalink
Browse files

basic preparations for Debian 10

  • Loading branch information...
hn committed Feb 22, 2019
1 parent 11feb20 commit 705a621d84137fb097c41436d87d2438e13bff86
Showing with 8 additions and 2 deletions.
  1. +7 −1 blackarmor-nas220-debian-postinstall.sh
  2. +1 −1 blackarmor-nas220-debian-prep.sh
@@ -38,6 +38,7 @@ if [ ! -d /usr/share/flash-kernel/db ]; then
exit 1
fi

# Debian 9 vs 10
if ! grep -q "Seagate Blackarmor NAS220" /usr/share/flash-kernel/db/*.db; then
cat <<EOF >/usr/share/flash-kernel/db/seagate-blackarmor-nas220.db
Machine: Seagate Blackarmor NAS220
@@ -72,5 +73,10 @@ EOF

apt-get --yes install linux-image-marvell

grep -q 862013 /etc/fstab || echo -e "# Set /run size, see Debian Bug #862013\ntmpfs\t/run\ttmpfs\tnosuid,noexec,size=20M\t0\t0" >> /etc/fstab
# Debian 9 vs 10
if grep -q ^RUNSIZE /etc/initramfs-tools/initramfs.conf; then
perl -i -p -e 's/^(RUNSIZE=).*/${1}20M/' /etc/initramfs-tools/initramfs.conf
else
grep -q 862013 /etc/fstab || echo -e "# Set /run size, see Debian Bug #862013\ntmpfs\t/run\ttmpfs\tnosuid,noexec,size=20M\t0\t0" >> /etc/fstab
fi

@@ -2,7 +2,7 @@
#
# blackarmor-nas220-debian-prep.sh V1.00
#
# Install Debian GNU/Linux 9 Stretch to a Seagate Blackarmor NAS 220
# Install Debian GNU/Linux to a Seagate Blackarmor NAS 220
#
# (C) 2018-2019 Hajo Noerenberg
#

0 comments on commit 705a621

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.