Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
c1ae79d7
Commit
c1ae79d7
authored
Nov 25, 2015
by
Mattia Rizzolo
Committed by
Holger Levsen
Nov 25, 2015
Browse files
put /tmp under tmpfs
parent
69f00384
Changes
1
Hide whitespace changes
Inline
Side-by-side
update_jdn.sh
View file @
c1ae79d7
...
@@ -60,9 +60,18 @@ sudo mkdir -p /srv/workspace
...
@@ -60,9 +60,18 @@ sudo mkdir -p /srv/workspace
# prepare tmpfs on some hosts
# prepare tmpfs on some hosts
case
$HOSTNAME
in
case
$HOSTNAME
in
jenkins
)
TMPFSSIZE
=
100
;;
jenkins
)
profitbricks-build4-amd64
)
TMPFSSIZE
=
32
;;
TMPFSSIZE
=
100
profitbricks-build?-amd64
)
TMPFSSIZE
=
200
;;
TMPSIZE
=
15
;;
profitbricks-build4-amd64
)
TMPFSSIZE
=
32
TMPSIZE
=
8
;;
profitbricks-build?-amd64
)
TMPFSSIZE
=
200
TMPSIZE
=
15
;;
*
)
;;
*
)
;;
esac
esac
case
$HOSTNAME
in
case
$HOSTNAME
in
...
@@ -70,6 +79,9 @@ case $HOSTNAME in
...
@@ -70,6 +79,9 @@ case $HOSTNAME in
if
!
grep
-q
'^tmpfs\s\+/srv/workspace\s'
/etc/fstab
;
then
if
!
grep
-q
'^tmpfs\s\+/srv/workspace\s'
/etc/fstab
;
then
echo
"tmpfs /srv/workspace tmpfs defaults,size=
${
TMPFSSIZE
}
g 0 0"
|
sudo tee
-a
/etc/fstab
>
/dev/null
echo
"tmpfs /srv/workspace tmpfs defaults,size=
${
TMPFSSIZE
}
g 0 0"
|
sudo tee
-a
/etc/fstab
>
/dev/null
fi
fi
if
!
grep
-q
'^tmpfs\s\+/tmp\s'
/etc/fstab
;
then
echo
"tmpfs /tmp tmpfs defaults,size=
${
TMPSIZE
}
g 0 0"
|
sudo tee
-a
/etc/fstab
>
/dev/null
fi
if
!
mountpoint
-q
/srv/workspace
;
then
if
!
mountpoint
-q
/srv/workspace
;
then
if
test
-z
"
$(
ls
-A
/srv/workspace
)
"
;
then
if
test
-z
"
$(
ls
-A
/srv/workspace
)
"
;
then
sudo
mount /srv/workspace
sudo
mount /srv/workspace
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment