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
89d05dea
Commit
89d05dea
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Don't preinstall repos on mesh variant
parent
cacb9770
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
+10
-6
10 additions, 6 deletions
src/freedombone-image-customise
with
10 additions
and
6 deletions
src/freedombone-image-customise
+
10
−
6
View file @
89d05dea
...
...
@@ -285,7 +285,7 @@ following commands, then enter your details.
}
configure_ssh
()
{
if
[[
$VARIANT
==
"mesh"
||
$VARIANT
==
"meshclient"
||
$VARIANT
==
"meshusb"
]]
;
then
if
[[
$VARIANT
==
"mesh"
*
]]
;
then
return
fi
...
...
@@ -320,7 +320,7 @@ create_generic_image() {
fi
# Don't install any configuration. This will be a base system
if
[[
$VARIANT
!=
"mesh"
&&
$VARIANT
!=
"meshclient"
&&
$VARIANT
!=
"meshusb"
]]
;
then
if
[[
$VARIANT
!=
"mesh"
*
]]
;
then
CONFIG_FILENAME
=
else
touch
$rootdir
/root/.initial_mesh_setup
...
...
@@ -403,7 +403,7 @@ EOF
echo
" git checkout stretch"
>>
$rootdir
/root/.bashrc
echo
" make install"
>>
$rootdir
/root/.bashrc
if
[[
$VARIANT
!=
"mesh"
&&
$VARIANT
!=
"meshclient"
&&
$VARIANT
!=
"meshusb"
&&
$VARIANT
!=
"usb"
]]
;
then
if
[[
$VARIANT
!=
"mesh"
*
&&
$VARIANT
!=
"usb"
]]
;
then
if
[[
"
$SOCIALINSTANCE
"
==
"gnusocial"
]]
;
then
echo
"
${
PROJECT_NAME
}
menuconfig-gnusocial"
>>
$rootdir
/root/.bashrc
else
...
...
@@ -433,7 +433,7 @@ EOF
echo
' rm /home/fbone/.initial_setup'
>>
$rootdir
/root/.bashrc
echo
" touch /root/.remove_
${
GENERIC_IMAGE_USERNAME
}
"
>>
$rootdir
/root/.bashrc
echo
' shred -zu ~/login.txt'
>>
$rootdir
/root/.bashrc
if
[[
$VARIANT
!=
"mesh"
&&
$VARIANT
!=
"meshclient"
&&
$VARIANT
!=
"meshusb"
&&
$VARIANT
!=
"usb"
]]
;
then
if
[[
$VARIANT
!=
"mesh"
*
&&
$VARIANT
!=
"usb"
]]
;
then
echo
' SSH_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_ssh/hostname)'
>>
$rootdir
/root/.bashrc
echo
' if [ ${#SSH_ONION_HOSTNAME} -lt 2 ]; then'
>>
$rootdir
/root/.bashrc
...
...
@@ -583,7 +583,7 @@ INSTALL_DIR=$HOME/build
INSTALLING_MESH
=
initialise_mesh
()
{
if
[[
$VARIANT
!=
"mesh"
&&
$VARIANT
!=
"meshclient"
&&
$VARIANT
!=
"meshusb"
]]
;
then
if
[[
$VARIANT
!=
"mesh"
*
]]
;
then
return
fi
if
[[
$DEBIAN_INSTALL_ONLY
!=
"no"
]]
;
then
...
...
@@ -1236,6 +1236,10 @@ function image_install_nodejs {
}
function
image_preinstall_repos
{
if
[[
$VARIANT
==
"mesh"
*
]]
;
then
return
fi
if
[
!
-d
$rootdir
/repos
]
;
then
mkdir
$rootdir
/repos
fi
...
...
@@ -1364,7 +1368,7 @@ if [ -n "$CUSTOM_SETUP" ]; then
chroot
"
$rootdir
"
gdebi
-n
/tmp/
"
$(
basename
$CUSTOM_SETUP
)
"
fi
if
[[
$VARIANT
!=
"mesh
client"
&&
$VARIANT
!=
"meshusb"
&&
$VARIANT
!=
"mesh
"
]]
;
then
if
[[
$VARIANT
!=
"mesh"
*
]]
;
then
chroot
"
$rootdir
"
apt-get
install
-y
openssh-server
fi
chroot
"
$rootdir
"
apt-get
install
-y
sudo
git dialog build-essential
...
...
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