Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Docker Build Images
raspbian-base
Commits
c04ea58c
Commit
c04ea58c
authored
Nov 26, 2018
by
Markus Frosch
Browse files
debootstrap: Make sure to umount target system fs
parent
8fc8f212
Pipeline
#2998
failed with stage
in 3 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
debootstrap/debootstrap.sh
View file @
c04ea58c
...
@@ -14,6 +14,10 @@ set -exu
...
@@ -14,6 +14,10 @@ set -exu
gpg
--no-tty
--keyserver
"
$KEYSERVER
"
--recv-key
"
$GPGKEY
"
gpg
--no-tty
--keyserver
"
$KEYSERVER
"
--recv-key
"
$GPGKEY
"
umount
-R
"
${
TARGET
:?
}
/proc"
||
true
umount
-R
"
${
TARGET
:?
}
/sys"
||
true
umount
-R
"
${
TARGET
:?
}
/dev"
||
true
rm
-rf
"
${
TARGET
:?
}
"
rm
-rf
"
${
TARGET
:?
}
"
rm
-f
"
${
TARBALL
}
"
rm
-f
"
${
TARBALL
}
"
...
@@ -31,6 +35,10 @@ then
...
@@ -31,6 +35,10 @@ then
exit
1
exit
1
fi
fi
umount
-R
"
${
TARGET
:?
}
/proc"
||
true
umount
-R
"
${
TARGET
:?
}
/sys"
||
true
umount
-R
"
${
TARGET
:?
}
/dev"
||
true
rm
-rf
"
${
TARGET
:?
}
"
/var/lib/apt/lists/
*
rm
-rf
"
${
TARGET
:?
}
"
/var/lib/apt/lists/
*
rm
-rf
"
${
TARGET
:?
}
"
/var/cache/apt/archives/
*
rm
-rf
"
${
TARGET
:?
}
"
/var/cache/apt/archives/
*
...
...
Write
Preview
Supports
Markdown
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