Skip to content

Commit

Permalink
Merge pull request #3 from pfeerick/patch-1
Browse files Browse the repository at this point in the history
Add root check and install dependencies
  • Loading branch information
ayufan authored Jun 28, 2017
2 parents a0c07c3 + 3d19d43 commit 9c6a1a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ linux-rock64-package-$(RELEASE_NAME).deb: package
--deb-compression bzip2 \
--after-install package/scripts/postinst.deb \
--before-remove package/scripts/prerm.deb \
--depends gdisk \
--depends parted \
--url https://gitlab.com/ayufan-rock64/linux-build \
--description "Rock64 Linux support package" \
--config-files /boot/extlinux/ \
Expand Down
5 changes: 5 additions & 0 deletions package/root/usr/local/sbin/resize_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -xe

if [ "$(id -u)" -ne "0" ]; then
echo "This script requires root."
exit 1
fi

gdisk /dev/mmcblk0 <<EOF
x
e
Expand Down
3 changes: 2 additions & 1 deletion rootfs/make_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ export DEBIAN_FRONTEND=noninteractive
locale-gen en_US.UTF-8
apt-get -y update
apt-get -y install dosfstools curl xz-utils iw rfkill wpasupplicant openssh-server alsa-utils \
nano git build-essential vim jq wget ca-certificates software-properties-common dirmngr
nano git build-essential vim jq wget ca-certificates software-properties-common dirmngr \
gdisk parted
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BF428671
if [[ "$DISTRO" == "jessie" ]]; then
REPO=xenial
Expand Down

0 comments on commit 9c6a1a5

Please sign in to comment.