Hello community,

here is the log from the commit of package mksusecd for openSUSE:Factory 
checked in at 2017-05-22 18:09:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mksusecd (Old)
 and      /work/SRC/openSUSE:Factory/.mksusecd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mksusecd"

Mon May 22 18:09:50 2017 rev:38 rq:497302 version:1.52

Changes:
--------
--- /work/SRC/openSUSE:Factory/mksusecd/mksusecd.changes        2017-05-16 
14:45:00.848318612 +0200
+++ /work/SRC/openSUSE:Factory/.mksusecd.new/mksusecd.changes   2017-05-22 
18:09:50.206113717 +0200
@@ -0,0 +1,9 @@
+--------------------------------------------------------------------
+Mon May 22 11:48:59 UTC 2017 - [email protected]
+
+- merge gh#openSUSE/mksusecd#23
+- remove iso9660 header when creating image for usb media
+  (bsc#939456)
+- clarify description of --fat option
+- 1.52
+

Old:
----
  mksusecd-1.51.tar.xz

New:
----
  mksusecd-1.52.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mksusecd.spec ++++++
--- /var/tmp/diff_new_pack.HugMHr/_old  2017-05-22 18:09:50.666048884 +0200
+++ /var/tmp/diff_new_pack.HugMHr/_new  2017-05-22 18:09:50.670048320 +0200
@@ -18,7 +18,7 @@
 
 
 Name:           mksusecd
-Version:        1.51
+Version:        1.52
 Release:        0
 Summary:        Create SUSE Linux installation ISOs
 License:        GPL-3.0+

++++++ mksusecd-1.51.tar.xz -> mksusecd-1.52.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mksusecd-1.51/VERSION new/mksusecd-1.52/VERSION
--- old/mksusecd-1.51/VERSION   2017-04-28 13:19:44.000000000 +0200
+++ new/mksusecd-1.52/VERSION   2017-05-22 13:48:59.000000000 +0200
@@ -1 +1 @@
-1.51
+1.52
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mksusecd-1.51/changelog new/mksusecd-1.52/changelog
--- old/mksusecd-1.51/changelog 2017-04-28 13:19:44.000000000 +0200
+++ new/mksusecd-1.52/changelog 2017-05-22 13:48:59.000000000 +0200
@@ -1,3 +1,7 @@
+2017-05-18:    1.52
+       - clarify description of --fat option
+       - remove iso9660 header when creating image for usb media (bsc #939456)
+
 2017-04-28:    1.51
        - document all functions
        - enhanced README.md
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mksusecd-1.51/mksusecd new/mksusecd-1.52/mksusecd
--- old/mksusecd-1.51/mksusecd  2017-04-28 13:19:44.000000000 +0200
+++ new/mksusecd-1.52/mksusecd  2017-05-22 13:48:59.000000000 +0200
@@ -200,6 +200,7 @@
 sub check_mksquashfs_comp;
 sub eval_size;
 sub add_linuxrc_option;
+sub wipe_iso;
 
 my %config;
 my $sudo;
@@ -244,6 +245,7 @@
 my $opt_net;
 my $opt_instsys;
 my $opt_defaultrepo;
+my $opt_no_iso;
 
 
 GetOptions(
@@ -266,7 +268,8 @@
   'hybrid'           => \$opt_hybrid,
   'no-hybrid'        => sub { $opt_hybrid = 0 },
   'hybrid-fs=s'      => sub { $opt_hybrid = 1; $opt_hybrid_fs = $_[1] },
-  'fat'              => sub { $opt_hybrid = 1; $opt_hybrid_fs = 'fat' },
+  'fat'              => sub { $opt_hybrid = 1; $opt_hybrid_fs = 'fat'; 
$opt_efi = 0; $opt_no_iso = 1 },
+  'no-iso'           => \$opt_no_iso,
   'size=s'           => \$opt_size,
   'protective-mbr'   => sub { $opt_no_prot_mbr = 0 },
   'no-protective-mbr' => \$opt_no_prot_mbr,
@@ -536,6 +539,8 @@
   if($mkisofs->{partition_start}) {
     system "tagmedia --add-tag  'partition=$mkisofs->{partition_start}' 
'$iso_file' >/dev/null";
   }
+
+  wipe_iso if $opt_no_iso;
 }
 
 
@@ -588,6 +593,7 @@
       --no-mbr-code             Don't include x86 MBR boot code.
       --mbr-chs                 Fill in sensible CHS values in MBR partition 
table (default).
       --no-mbr-chs              Use 0xffffff instead of CHS values in MBR 
partition table.
+      --no-iso                  Don't make image accessible as ISO9660 file 
system.
       --hybrid                  Create an isohybrid image which is both an ISO 
and a
                                 regular disk image (default).
       --no-hybrid               Create a regular ISO image without extra 
gimmicks.
@@ -597,7 +603,11 @@
                                 image (partitioning tools don't really like 
this) or
                                 'iso' or 'fat' in which case you get a regular 
partition
                                 with an ISO960 or FAT file system (default: 
'iso').
-      --fat                     An alias for '--hybrid-fs fat'.
+      --fat                     Create an image that's suitable to be put on a 
usb disk.
+                                The image holds a single FAT32 partition and 
it can NOT be
+                                used to write a DVD. You can adjust the file 
system size
+                                with the --size option.
+                                Technically an alias for '--hybrid-fs=fat 
--no-efi --no-iso'.
       --size SIZE_SPEC          When using a FAT file system, you can set the 
intended size of
                                 the disk image.
                                 SIZE_SPEC can be a number, optionally followed 
by a unit ('b',
@@ -3889,3 +3899,20 @@
   print "added linuxrc option $key=\"$value\"\n" if $opt_verbose >= 1;
 }
 
+
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# wipe_iso()
+#
+# Wipe iso9660 file system header.
+#
+sub wipe_iso
+{
+  die "$iso_file: $!\n" unless open $iso_fh, "+<", $iso_file;
+
+  write_sector 0x10, ("\x00" x 0x800);
+  write_sector 0x11, ("\x00" x 0x800);
+
+  close $iso_fh;
+  undef $iso_fh;
+}
+


Reply via email to