Changeset 576


Ignore:
Timestamp:
Dec 24, 2013, 1:07:50 PM (6 years ago)
Author:
amain
Message:

rootfs: Fix #990: Can't create tar of rootfs due to mounted /sys - part 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/rootfs/debian.mk

    r575 r576  
    3131        @if ! (mount | grep -q $(ROOTFS_BUILD_DIR)/proc); then sudo chroot $(ROOTFS_BUILD_DIR) mount -t proc none /proc; fi
    3232        @if ! (mount | grep -q $(ROOTFS_BUILD_DIR)/sys ); then sudo chroot $(ROOTFS_BUILD_DIR) mount -t sysfs none /sys; fi
     33        @mount
    3334endef
    3435
    3536define qemu-cleanup
    36         @sudo chroot $(ROOTFS_BUILD_DIR) umount /proc
    37         @sudo chroot $(ROOTFS_BUILD_DIR) umount /sys
     37        @if (mount | grep -q $(ROOTFS_BUILD_DIR)/proc); then sudo umount $(ROOTFS_BUILD_DIR)/proc; fi
     38        @if (mount | grep -q $(ROOTFS_BUILD_DIR)/sys ); then sudo umount $(ROOTFS_BUILD_DIR)/sys ; fi
    3839        @sudo rm -f $(ROOTFS_BUILD_DIR)$(QEMU_INTERPRETER)
    3940endef
Note: See TracChangeset for help on using the changeset viewer.