Permalink
Browse files

Some finishing touches on Rock64

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 26, 2018
1 parent 1176458 commit 2571b11b9a9da86f1d59858d27f9750cd0385357
Showing with 18 additions and 3 deletions.
  1. +15 −3 build/160-pine_rock64
  2. +3 −0 nems-cleanup.sh
@@ -3,6 +3,9 @@
# The Rock64 platform requires some extra fandangling to resize the filesystem
# Thanks to Ayufan for doing all the legwork... I'd have scratched my head a while.
# There is also a folder located at /var/lib/rock64
# But we'll leave it to the cleanup script - not here
# Install the latest kernel and patches from Ayufan
apt -y install linux-rock64
@@ -13,6 +16,15 @@ apt -y install gdisk
if [[ ! -d /usr/local/sbin/ ]]; then
mkdir /usr/local/sbin
fi
cp -f -p /root/nems/nems-migrator/data/1.4/platforms/pine64/rock64/first-boot.service /etc/systemd/system/
cp -f -p /root/nems/nems-migrator/data/1.4/platforms/pine64/rock64/rock64_first_boot.sh /usr/local/sbin/
cp -f -p /root/nems/nems-migrator/data/1.4/platforms/pine64/rock64/resize_rootfs.sh /usr/local/sbin/
if [[ ! -e /etc/systemd/system/first-boot.service ]]; then
cp -f -p /root/nems/nems-migrator/data/1.4/platforms/pine64/rock64/first-boot.service /etc/systemd/system/
fi
if [[ ! -e /usr/local/sbin/rock64_first_boot.sh ]]; then
cp -f -p /root/nems/nems-migrator/data/1.4/platforms/pine64/rock64/rock64_first_boot.sh /usr/local/sbin/
fi
if [[ ! -e /usr/local/sbin/resize_rootfs.sh ]]; then
cp -f -p /root/nems/nems-migrator/data/1.4/platforms/pine64/rock64/resize_rootfs.sh /usr/local/sbin/
fi
@@ -241,6 +241,9 @@ nameserver 2001:4860:4860::8844
fi
fi
# remove any package data left behind after removal
apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
sync
if [[ $1 == "halt" ]]; then echo "Halting..."; halt; exit; fi;

0 comments on commit 2571b11

Please sign in to comment.