diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-23 13:39:08 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-23 13:39:08 +0000 |
commit | d8f6a0cefbdef6c38606fb932e0e216e4cce1350 (patch) | |
tree | a415c4b9a857d84038c0e0324d17ca6b6a3ecd77 | |
parent | 9554bef4eb37f4b2b919c396fe29df6d75833923 (diff) | |
download | tbdiff-d8f6a0cefbdef6c38606fb932e0e216e4cce1350.tar.gz |
Hard-code more stuff (rm, mktemp) to busybox.
-rwxr-xr-x | tbdiff-update/tbdiff-update | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tbdiff-update/tbdiff-update b/tbdiff-update/tbdiff-update index 8d25bc0..9a6860e 100755 --- a/tbdiff-update/tbdiff-update +++ b/tbdiff-update/tbdiff-update @@ -41,9 +41,9 @@ if [ ! -f "$patch_file" ]; then fi # mount the root btrfs file system -rootfs="$(mktemp -d)" +rootfs="$(busybox mktemp -d)" mount -t btrfs "$device" "$rootfs" -trap "cd /; umount $rootfs; rm -rf $rootfs" ERR EXIT SIGINT SIGTERM +trap "cd /; umount $rootfs; busybox rm -rf $rootfs" EXIT SIGINT SIGTERM # switch into the root file system cd "$rootfs" |