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
1c802166
Unverified
Commit
1c802166
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Deal with the aftermath of aggressive-indent
parent
e2f66dcb
No related branches found
Branches containing commit
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
+21
-21
21 additions, 21 deletions
src/freedombone-image-customise
with
21 additions
and
21 deletions
src/freedombone-image-customise
+
21
−
21
View file @
1c802166
...
...
@@ -95,8 +95,8 @@ enable_eatmydata_override() {
>
$rootdir
/var/tmp/dpkg-eatmydata
chmod
755
$rootdir
/var/tmp/dpkg-eatmydata
cat
>
$rootdir
/etc/apt/apt.conf.d/95debian-edu-install-dpkg-eatmydata
<<
EOF
Dir::Bin::dpkg "/var/tmp/dpkg-eatmydata";
EOF
Dir::Bin::dpkg "/var/tmp/dpkg-eatmydata";
EOF
else
echo
$"error: unable to find /usr/bin/eatmydata after installing the eatmydata package"
fi
...
...
@@ -121,12 +121,12 @@ set_apt_sources() {
COMPONENTS
=
"main"
cat
<<
EOF
> etc/apt/sources.list
deb
$NEW_MIRROR
$SUITE
$COMPONENTS
deb-src
$NEW_MIRROR
$SUITE
$COMPONENTS
deb
$NEW_MIRROR
$SUITE
$COMPONENTS
deb-src
$NEW_MIRROR
$SUITE
$COMPONENTS
#deb http://security.debian.org/
$SUITE
/updates main
#deb-src http://security.debian.org/
$SUITE
/updates main
EOF
#deb http://security.debian.org/
$SUITE
/updates main
#deb-src http://security.debian.org/
$SUITE
/updates main
EOF
}
configure_networking
()
{
...
...
@@ -251,10 +251,10 @@ create_generic_image() {
touch
$rootdir
/root/.initial_setup
cat
>>
$rootdir
/home/
$MY_USERNAME
/.bashrc
<<
EOF
# initial setup of the system
if [ -f ~/.initial_setup ]; then
clear
echo "
# initial setup of the system
if [ -f ~/.initial_setup ]; then
clear
echo "
.---. . .
| | |
|--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.
...
...
@@ -265,9 +265,9 @@ create_generic_image() {
Please enter your password a second time.
"
sudo su
fi
EOF
sudo su
fi
EOF
echo
'# initial setup of the system'
>>
$rootdir
/root/.bashrc
echo
'if [ -f ~/.initial_setup ]; then'
>>
$rootdir
/root/.bashrc
...
...
@@ -491,9 +491,9 @@ chroot "$rootdir" apt-get clean
chroot
"
$rootdir
"
apt-get update
cat
>
$rootdir
/usr/sbin/policy-rc.d
<<
EOF
#!/bin/sh
exit 101
EOF
#!/bin/sh
exit 101
EOF
chmod
a+rx
$rootdir
/usr/sbin/policy-rc.d
if
$use_eatmydata
;
then
...
...
@@ -515,10 +515,10 @@ chroot "$rootdir" apt-get install -y locales locales-all debconf wireless-tools
sed
-i
"s|#host-name=.*|host-name=
${
PROJECT_NAME
}
|g"
$rootdir
/etc/avahi/avahi-daemon.conf
chroot
"
$rootdir
"
/bin/bash
-x
<<
EOF
git clone
$PROJECT_REPO
/root/
$PROJECT_NAME
cd /root/
$PROJECT_NAME
make install
EOF
git clone
$PROJECT_REPO
/root/
$PROJECT_NAME
cd /root/
$PROJECT_NAME
make install
EOF
chroot
"
$rootdir
"
${
PROJECT_NAME
}
-image-hardware-setup
2>&1 |
\
tee
$rootdir
/var/log/
${
PROJECT_NAME
}
-image-hardware-setup
.log
...
...
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