Skip to content

Commit

Permalink
Hide mdadm during image building
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Jan 11, 2018
1 parent 068d61d commit d8a280d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rootfs/make_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,9 @@ do_chroot() {
mount -o bind /tmp "$DEST/tmp"
chroot "$DEST" mount -t proc proc /proc
chroot "$DEST" mount -t sysfs sys /sys
chroot "$DEST" mount --bind /dev/null /proc/mdstat
chroot "$DEST" $cmd
chroot "$DEST" umount /sys
chroot "$DEST" umount /proc
umount "$DEST/tmp"
chroot "$DEST" umount /sys /proc/mdstat /proc /tmp
}

do_install() {
Expand Down Expand Up @@ -295,6 +294,7 @@ mkdir -p "$DEST/usr"
rm -f "$DEST/usr/bin/qemu-arm-static"
rm -f "$DEST/usr/bin/qemu-aarch64-static"
rm -f "$DEST/usr/sbin/policy-rc.d"
rm -f "$DEST/usr/local/bin/mdadm"
rm -f "$DEST/var/lib/dbus/machine-id"
rm -f "$DEST/SHA256SUMS"

Expand Down

0 comments on commit d8a280d

Please sign in to comment.