Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
4d337169
Commit
4d337169
authored
9 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Tidying
parent
3baf2c68
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-image-customise
+18
-12
18 additions, 12 deletions
src/freedombone-image-customise
with
18 additions
and
12 deletions
src/freedombone-image-customise
+
18
−
12
View file @
4d337169
...
...
@@ -200,9 +200,9 @@ export TMP=/tmp/ TMPDIR=/tmp/
username
=
$MY_USERNAME
echo
"warning: creating initial user
$username
with well known password!"
password
=
$MY_PASSWORD
chroot
$rootdir
adduser
--gecos
$username
--disabled-password
$username
chroot
"
$rootdir
"
adduser
--gecos
$username
--disabled-password
$username
echo
$username
:
$password
|
chroot
$rootdir
/usr/sbin/chpasswd
chroot
$rootdir
adduser
$username
sudo
chroot
"
$rootdir
"
adduser
$username
sudo
case
"
$MACHINE
"
in
virtualbox
)
...
...
@@ -213,7 +213,7 @@ case "$MACHINE" in
esac
set_apt_sources
$BUILD_MIRROR
chroot
$rootdir
apt-get update
chroot
"
$rootdir
"
apt-get update
cat
>
$rootdir
/usr/sbin/policy-rc.d
<<
EOF
#!/bin/sh
...
...
@@ -232,33 +232,39 @@ if [ -n "$CUSTOM_SETUP" ]; then
fi
chroot
"
$rootdir
"
apt-get
install
-y
git dialog build-essential openssh-server
chroot
"
$rootdir
"
git clone https://github.com/bashrc/freedombone /root/freedombone
chroot
"
$rootdir
"
cd
/root/freedombone
&&
make
install
chroot
"
$rootdir
"
/bin/bash
-x
<<
EOF
git clone https://github.com/bashrc/freedombone /root/freedombone
cd /root/freedombone
make install
EOF
chroot
$rootdir
freedombone-image-hardware-setup 2>&1 |
\
chroot
"
$rootdir
"
freedombone-image-hardware-setup 2>&1 |
\
tee
$rootdir
/var/log/freedombone-image-hardware-setup.log
rm
$rootdir
/usr/sbin/policy-rc.d
chroot
$rootdir
/usr/lib/freedombone/setup 2>&1 |
\
chroot
"
$rootdir
"
/usr/lib/freedombone/setup 2>&1 |
\
tee
$rootdir
/var/log/freedombone-setup.log
# Remove SSH keys from the image
rm
$rootdir
/etc/ssh/ssh_host_
*
||
true
if
[[
"
$MACHINE
"
!=
"beaglebone"
]]
;
then
chroot
$rootdir
apt-get
-y
install
haveged
else
chroot
$rootdir
apt-get
-y
install
rng-tools
sed
-i
's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/hwrng|g'
$rootdir
/etc/default/rng-tools
fi
# copy u-boot to beginning of image
case
"
$MACHINE
"
in
beaglebone
)
chroot
$rootdir
apt-get
-y
install
rng-tools
sed
-i
's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/hwrng|g'
$rootdir
/etc/default/rng-tools
dd
if
=
$rootdir
/usr/lib/u-boot/am335x_boneblack/MLO
of
=
"
$image
"
\
count
=
1
seek
=
1
conv
=
notrunc
bs
=
128k
dd
if
=
$rootdir
/usr/lib/u-boot/am335x_boneblack/u-boot.img
of
=
"
$image
"
\
count
=
2
seek
=
1
conv
=
notrunc
bs
=
384k
;;
cubieboard2
)
chroot
$rootdir
apt-get
-y
install
haveged
dd
if
=
$rootdir
/usr/lib/u-boot/Cubieboard2/u-boot-sunxi-with-spl.bin
of
=
"
$image
"
\
seek
=
8
conv
=
notrunc
bs
=
1k
;;
...
...
@@ -269,7 +275,7 @@ if $use_eatmydata ; then
fi
set_apt_sources
$MIRROR
chroot
$rootdir
apt-get update
chroot
"
$rootdir
"
apt-get update
configure_ssh
configure_networking
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment