Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian
slapos
Commits
382a23ca
Commit
382a23ca
authored
Oct 27, 2015
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nayuos: On the way to re6stnet.
parent
eb49fb8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
instance.cfg
instance.cfg
+1
-1
scripts/cros_full_build.sh.in
scripts/cros_full_build.sh.in
+15
-5
software.cfg
software.cfg
+1
-1
No files found.
instance.cfg
View file @
382a23ca
...
...
@@ -48,7 +48,7 @@ scripts_dir = {{ scripts_dir }}
recipe = slapos.recipe.template:jinja2
template = {{ scripts_dir }}/cros_full_build.sh.in
rendered = ${directory:run}/cros_full_build.sh
md5sum =
a698b56b99492b22f76d402d3def5774
md5sum =
0e10850c8f9272272ed1a4cabce66529
mode = 0770
context =
# for access to the eggs from the instance
...
...
scripts/cros_full_build.sh.in
View file @
382a23ca
...
...
@@ -17,10 +17,19 @@ cd {{ cros_location }}
# create chroot environment (exit on failure)
cros_sdk
--download
||
exit
1
# compile Python with sqlite support (-> change USE flag) for dev-lang/python
# it is needed by re6st
# just need to change -sqlite by sqlite on the right line
PACKAGE_USE_FILE
={{
cros_location
}}
/src/third_party/chromiumos-overlay/profiles/targets/chromeos/package.use
line_number
=
$(
sed
-n
'/dev-lang\/python/='
${
PACKAGE_USE_FILE
}
)
if
[
$line
]
;
then
sed
-i
"
${
line_number
}
s/-sqlite/sqlite/"
${
PACKAGE_USE_FILE
}
fi
# add custom script for modifying the final image after building
# that is useful for custumizing Chromium OS and produc
e
Nayu images for now
cp
{{
scripts_dir
}}
/modify_image.sh
{{
cros_location
}}
/src/scripts/modify_image.sh
\
&&
chmod
770
{{
cros_location
}}
/src/scripts/modify_image.sh
||
exit
1
# that is useful for custumizing Chromium OS and produc
ing
Nayu images for now
#
cp {{ scripts_dir }}/modify_image.sh {{ cros_location }}/src/scripts/modify_image.sh \
#
&& chmod 770 {{ cros_location }}/src/scripts/modify_image.sh || exit 1
# add custom ebuilds
for
category
in
$(
ls
{{
ebuilds_dir
}}
)
;
do
...
...
@@ -78,18 +87,19 @@ done
####################################### Post build ##########################################
# keep only the substring between - as current release
RELEASE
=
$(
sed
's/.*-\(.*\)-.*//'
<<<
"
$BRANCH
"
)
RELEASE
=
$(
echo
${
BRANCH
}
|
cut
-d-
-f2
)
DIR_IMAGE_LOCATION
={{
cros_location
}}
/images/
${
RELEASE
}
/
$(
date
+
'%F'
)
install
${
DIR_IMAGE_LOCATION
}
-d
mv
{{
cros_location
}}
/src/scripts/
*
.img
${
DIR_IMAGE_LOCATION
}
cd
${
DIR_IMAGE_LOCATION
}
for
hashfunction
in
md5sum
sha1
sha256 sh512
;
do
for
hashfunction
in
md5sum sha1
sum sha256sum sha512sum
;
do
${
hashfunction
}
*
.img
>>
hashes.txt
done
for
file
in
$(
ls
*
.img
)
;
do
tar
cfz
${
file
}
.tar
${
file
}
rm
${
file
}
done
exit
0
\ No newline at end of file
software.cfg
View file @
382a23ca
...
...
@@ -35,7 +35,7 @@ command = sudo -V
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg
rendered = ${buildout:directory}/instance.cfg
md5sum =
fd1efcf9ad466694bde651ab52fd31c9
md5sum =
78f4aa77239313bdc9de3907fe332bd7
mode = 0644
scripts_dir = ${:_profile_base_location_}/scripts
ebuilds_dir = ${:_profile_base_location_}/custom_ebuilds
...
...
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