Menu

#278 ocs-live-dev zip or tar need flag to specify and not let it to chance

testing_clonezilla
closed-fixed
None
5
2017-08-01
2017-07-26
Mircea Dan
No

when i create live images using ocs-live-dev
if the image is small enough it will have zip extension
if the image is big it will have tar extension

it is posible to set a flag to force to always have .tar

--file-name-prefix alows us to specify teh file name, but the extension is always chosen

-c, --create-release Create a USB package release file, this will not create a bootable device, instead it will create a zip file contain all necessary files to make it boot and run clonezilla live.

it says it will create zip, but if the image is to large it is actualy a tar (due to some zip bug)

anyway this behaviour creates files with either zip or tar extension , enforcing to be tar via an option will be helpfull.

PS: help shoudl be aupdated to reflect the fact that --create-release may craete also a tar not only a zip.

Discussion

  • Mircea Dan

    Mircea Dan - 2017-07-26

    i see in the code "ocs-live-dev" there is a
    prefer_archive="zip"

    will be good if this coudl come from a --prefer-archive flag

     
  • Mircea Dan

    Mircea Dan - 2017-07-26
    -z|--prefer-archive)
            shift
            if [ -z "$(echo $1 |grep ^-.)" ]; then
              # skip the -xx option, in case 
              prefer_archive="$1"
              shift
            fi
        [ -z "$prefer_archive" ] && USAGE && exit 1
            ;;
    
     
  • Steven Shiau

    Steven Shiau - 2017-07-31

    Thanks for the patch. Applied in clonezilla package 3.27.15 and will be used in next Clonezilla live testing release.

    Steven

     
  • Mircea Dan

    Mircea Dan - 2017-07-31

    thank you very much will give it a try

     
  • Steven Shiau

    Steven Shiau - 2017-08-01
    • status: open --> closed-fixed
    • assigned_to: Steven Shiau
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.