slitaz-modular view initramfs/usr/bin/dir2xz @ rev 177

mkiso.sh: more filenames support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 30 09:46:37 2016 +0200 (2016-03-30)
parents
children
line source
1 #!/bin/bash
2 # convert directory tree into .xz compressed file
3 # which can be used as a LiveCD module
4 #
5 # Author: Tomas M. <http://www.linux-live.org>
6 #
8 PATH=.:$(dirname $0):/usr/lib:$PATH
9 . liblinuxlive || exit 1
11 if [ ! -d "$1" -o "$2" = "" ]; then
12 echo
13 echo "Convert directory tree into .lzm compressed module"
14 echo "usage: $0 source_directory output_file.xz"
15 exit 1
16 fi
18 create_module "$1" "$2" -comp xz -Xbcj x86
19 if [ $? != 0 ]; then echo "error building compressed image"; exit 1; fi