Skip to content

Commit

Permalink
builder: exclude /dev/* from images
Browse files Browse the repository at this point in the history
docker handles the device nodes dynamically so we don't need those

fixes gliderlabs#356
  • Loading branch information
ncopa committed Oct 31, 2017
1 parent ea5d8c9 commit b8dc7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/scripts/mkimage-alpine.bash
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ build() {
[[ "$ADD_APK_SCRIPT" ]] && cp /apk-install "$rootfs/usr/sbin/apk-install"

# save
tar -J -f rootfs.tar.xz --numeric-owner -C "$rootfs" -c .
tar -J -f rootfs.tar.xz --numeric-owner --exclude='dev/*' -C "$rootfs" -c .
[[ "$STDOUT" ]] && cat rootfs.tar.xz

return 0
Expand Down

0 comments on commit b8dc7fa

Please sign in to comment.