From 92ac5880e134362d7663dd50d22fa13cc87bc672 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 10 Dec 2019 03:11:43 +0300 Subject: generate tarball --- mkrootfs.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mkrootfs.sh') diff --git a/mkrootfs.sh b/mkrootfs.sh index 828f38d..fefb2b3 100755 --- a/mkrootfs.sh +++ b/mkrootfs.sh @@ -83,4 +83,8 @@ msg "Package build complete, starting package installation" kiss i $PKGS msg "Installation Complete, starting custombuild procedure if there is one" postinstall +msg "Generating rootfs to $BASEDIR" +cd "$MNTDIR" || die "Could not change directory to $MNTDIR" +tar -cpvJf "$BASEDIR/carbs-rootfs-$(date +%Y%m%d).tar.xz" . +cd "$BASEDIR" || die "Could not change directory to $BASEDIR" msg "Done!" -- cgit v1.2.3