File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 6
6
#
7
7
# ###############################################################################
8
8
9
- VERSION=" 2.3 .0"
9
+ VERSION=" 2.4 .0"
10
10
11
11
# ###############################################################################
12
12
# Common
@@ -815,6 +815,17 @@ rootfs_import()
815
815
container_mounted || container_mount root || return 1
816
816
817
817
case " ${rootfs_file} " in
818
+ * tar)
819
+ msg -n " Importing rootfs from tar archive ... "
820
+ if [ -e " ${rootfs_file} " ]; then
821
+ tar xf " ${rootfs_file} " -C " ${CHROOT_DIR} "
822
+ elif [ -z " ${rootfs_file## http* } " ]; then
823
+ wget -q -O - " ${rootfs_file} " | tar x -C " ${CHROOT_DIR} "
824
+ else
825
+ msg " fail" ; return 1
826
+ fi
827
+ is_ok " fail" " done" || return 1
828
+ ;;
818
829
* gz)
819
830
msg -n " Importing rootfs from tar.gz archive ... "
820
831
if [ -e " ${rootfs_file} " ]; then
@@ -849,7 +860,7 @@ rootfs_import()
849
860
is_ok " fail" " done" || return 1
850
861
;;
851
862
* )
852
- msg " Incorrect filename, supported only gz, bz2 or xz archives."
863
+ msg " Incorrect filename, supported only tar, tar. gz, tar. bz2 or tar. xz archives."
853
864
return 1
854
865
;;
855
866
esac
You can’t perform that action at this time.
0 commit comments