Giter VIP home page Giter VIP logo

dmg2dir's People

Contributors

thetumultuousunicornofdarkness avatar x0rg avatar yailm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dmg2dir's Issues

A couple of issues I've encountered

First, thanks for this handy piece of software!

Environment:

  • Arch Linux, kernel 4.18.5
  • bash 4.4.023-1
  • cdrtools 3.02a09-1
  • udisks2 2.7.7-1
  • dmg2dir 3.0.3-1 (from Arch AUR repo).

Issues:

  1. premount() check for dev variable fails if no existing disks have labels. In this case, /dev/disk/by-label doesn't exist. It's a legitimate possibility, should be taken into account.
  2. convertiso() fails with some of the more imaginative labels.

Example of the above (the disk by label variable check already disabled):

dmg2dir -w -n macOS_10.12.6_Sierra -p /home/user/example/macos_img -t /home/user/example/macos_img_tmp -d /home/user/example/macos_img_src/MacOS_Sierra_v10.12.6_Final/'MacOS_Sierra_v10.12.6_Final[16G29].dmg'

-> List devices labels
ls: cannot access '/dev/disk/by-label': No such file or directory

-> Set up loop-device
Mapped file /home/user/example/macos_img_tmp/macOS_10.12.6_Sierra.img as /dev/loop0.

-> Retrieve loop device name
/dev/loop0

-> Relist devices labels
macOS 10.12.6_(16G29)_[MAS]_MAC-RU.NET

-> Get label from lists differences
macOS 10.12.6_(16G29)_[MAS]_MAC-RU.NET

-> Set application directory
/home/user/example/macos_img/macOS_10.12.6_Sierra

==> Mount block device...
Mounted /dev/loop0p2 at /run/media/user/macOS 10.12.6_(16G29)_[MAS]_MAC-RU.NET.
/run/media/user/macOS0.12.6_(16G29)_[MAS]_MAC-RU.NET

==> Generate ISO file...
genisoimage: Warning: assuming PC Exchange cluster size of 512 bytes
Setting input-charset to 'UTF-8' from locale.
3.02a09 (x86_64-unknown-linux-gnu)
genisoimage: No such file or directory. Invalid node - '/run/media/user/macOS0.12.6_(16G29)_[MAS]_MAC-RU.NET'.
No output file found.
Error 50 has occured.

Note the /run/media/user/macOS0.12.6_(16G29)_[MAS]_MAC-RU.NET that should be /run/media/user/macOS 10.12.6_(16G29)_[MAS]_MAC-RU.NET.

Looks like the $mountpont variable in mountimg() gets the wrong value.

I had to move past it quickly. Hardcoding the correct path in the convertiso() function solves it.

  1. convertiso(), genisoimage throws errors if there are files larger than 4GB within the image:

genisoimage: Value too large for defined data type. File /run/media/user/macOS 10.13.6 High Sierra/Install macOS High Sierra.app/Contents/SharedSupport/InstallESD.dmg is too large for current mkisofs settings (-iso-level 3 or more required) - ignoring

Perhaps
$geniso $v -V "$name" -R -probe -g -o "$app_directory.iso" "$mountpoint"
should be something like (untested for actual ISO functionality, but it does get it built):
$geniso $v -V -iso-level 3 -UDF "$name" -R -probe -g -o "$app_directory.iso" "$mountpoint"

  1. A nitpick ;) There's a typo in error(), "Error %s has occured." should be "Error %s has occurred."

make install don't work.

$ sudo make install
msgfmt po/fr.po -o po/dmg2dir_fr.mo
make: msgfmt: No such file or directory
make: *** [Makefile:14: po] Error 127

That's error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.