Permalink
Browse files

Migrate build to Ayufan for A64+

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 1, 2018
1 parent 75c6104 commit 447ced958fc0b87ff5a936185f432a472f045a41
Showing with 36 additions and 2 deletions.
  1. +21 −0 build/160-pine_a64+
  2. +9 −2 build/160-pine_rock64
  3. +6 −0 nems-cleanup.sh
@@ -0,0 +1,21 @@
#!/bin/bash
# This is for the Pine A64+
# The Pine64 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/pine64
# But we'll leave it to the cleanup script - not here
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)
if (( $platform >= 40 )) && (( $platform <= 42 )); then
# Install the latest kernel and patches from Ayufan, including the first_boot scripts
apt -y install linux-pine64-package
# Get the needed commands for resize_rootfs.sh from the gdisk package command
apt -y install gdisk
fi
@@ -6,11 +6,15 @@
# There is also a folder located at /var/lib/rock64
# But we'll leave it to the cleanup script - not here
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)
if (( $platform >= 45 )) && (( $platform <= 47 )); then
# Install the latest kernel and patches from Ayufan
apt -y install linux-rock64
apt -y install linux-rock64
# Get the needed commands for resize_rootfs.sh from the gdisk package command
apt -y install gdisk
apt -y install gdisk
# first-boot service
if [[ ! -d /usr/local/sbin/ ]]; then
@@ -28,3 +32,6 @@ apt -y install gdisk
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
fi
@@ -230,6 +230,12 @@ nameserver 2001:4860:4860::8844
rm -rf /var/lib/rock64 # Ayufan's build places a file in that folder which stops it from resizing on boot
fi
if (( $platform >= 40 )) && (( $platform <= 42 )); then
# PINE A64+
rm -rf /var/lib/pine64 # Ayufan's build places a file in that folder which stops it from resizing on boot
fi
if (( $platform == 44 )); then
# PINE64
addition="/root/nems/nems-admin/resize_rootfs/pine64\n"

0 comments on commit 447ced9

Please sign in to comment.