Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
puppet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e1197b2d
authored
May 30, 2019
by
John Donnal
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
upgrade all packages during cleanup
parent
78f12cd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
rpi_bootstrap.sh
rpi_cleanup.sh
rpi_bootstrap.sh
View file @
e1197b2d
...
...
@@ -3,7 +3,12 @@ set -e
# start a container with the following command:
# sudo systemd-nspawn -D squashfs-root/ -b --network-interface=enxd8eb97bdd8ed --bind-ro=/home/jdonnal/puppet:/home/ubuntu/puppet -M wattsworth
#use UMD servers
cat
>
/etc/apt/sources.list
<<
EOF
deb http://mirror.umd.edu/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirror.umd.edu/raspbian/raspbian/ stretch main contrib non-free rpi
EOF
#echo "nameserver 172.31.33.1" > /etc/resolv.conf
apt-get update
apt-get upgrade
-y
...
...
rpi_cleanup.sh
View file @
e1197b2d
...
...
@@ -28,6 +28,7 @@ deb http://archive.raspberrypi.org/debian/ stretch main ui
#deb-src http://archive.raspberrypi.org/debian/ stretch main ui
EOF
apt update
apt upgrade
-y
echo
"6] Configuring root fs resize for first boot"
PARTUUID
=
"
$(
blkid
-o
export
/dev/mmcblk0p2 |
grep
PARTUUID
)
"
cat
>
/boot/cmdline.txt
<<
EOF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment