Hello community,

here is the log from the commit of package transactional-update for 
openSUSE:Factory checked in at 2017-06-02 10:33:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/transactional-update (Old)
 and      /work/SRC/openSUSE:Factory/.transactional-update.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "transactional-update"

Fri Jun  2 10:33:40 2017 rev:9 rq:500409 version:1.15

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/transactional-update/transactional-update.changes    
    2017-04-24 09:49:31.293696439 +0200
+++ 
/work/SRC/openSUSE:Factory/.transactional-update.new/transactional-update.changes
   2017-06-02 10:34:14.352216849 +0200
@@ -1,0 +2,7 @@
+Thu Jun  1 15:56:56 CEST 2017 - [email protected]
+
+- Update to version 1.15
+  - Rename option ptf to pkg
+  - Add option to set salt grains
+
+-------------------------------------------------------------------

Old:
----
  transactional-update-1.14.tar.bz2

New:
----
  transactional-update-1.15.tar.bz2

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

Other differences:
------------------
++++++ transactional-update.spec ++++++
--- /var/tmp/diff_new_pack.xpTJOw/_old  2017-06-02 10:34:14.868143951 +0200
+++ /var/tmp/diff_new_pack.xpTJOw/_new  2017-06-02 10:34:14.872143386 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           transactional-update
-Version:        1.14
+Version:        1.15
 Release:        0
 Summary:        Transactional Updates with btrfs and snapshots
 License:        GPL-2.0+

++++++ transactional-update-1.14.tar.bz2 -> transactional-update-1.15.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-1.14/NEWS 
new/transactional-update-1.15/NEWS
--- old/transactional-update-1.14/NEWS  2017-04-21 11:24:36.000000000 +0200
+++ new/transactional-update-1.15/NEWS  2017-06-01 15:54:28.000000000 +0200
@@ -2,6 +2,10 @@
 
 Copyright (C) 2016, 2017 Thorsten Kukuk
 
+Version 1.15
+* Add support to ceate salt grains with current status
+* Rename ptf to pkg
+
 Version 1.14
 * Fix check of return values of commands in pipes
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-1.14/configure 
new/transactional-update-1.15/configure
--- old/transactional-update-1.14/configure     2017-04-21 11:24:40.000000000 
+0200
+++ new/transactional-update-1.15/configure     2017-06-01 15:54:36.000000000 
+0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for transactional-update 1.14.
+# Generated by GNU Autoconf 2.69 for transactional-update 1.15.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -576,8 +576,8 @@
 # Identity of this package.
 PACKAGE_NAME='transactional-update'
 PACKAGE_TARNAME='transactional-update'
-PACKAGE_VERSION='1.14'
-PACKAGE_STRING='transactional-update 1.14'
+PACKAGE_VERSION='1.15'
+PACKAGE_STRING='transactional-update 1.15'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1211,7 +1211,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures transactional-update 1.14 to adapt to many kinds of 
systems.
+\`configure' configures transactional-update 1.15 to adapt to many kinds of 
systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1278,7 +1278,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of transactional-update 1.14:";;
+     short | recursive ) echo "Configuration of transactional-update 1.15:";;
    esac
   cat <<\_ACEOF
 
@@ -1358,7 +1358,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-transactional-update configure 1.14
+transactional-update configure 1.15
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1375,7 +1375,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by transactional-update $as_me 1.14, which was
+It was created by transactional-update $as_me 1.15, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2238,7 +2238,7 @@
 
 # Define the identity of the package.
  PACKAGE='transactional-update'
- VERSION='1.14'
+ VERSION='1.15'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -3097,7 +3097,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by transactional-update $as_me 1.14, which was
+This file was extended by transactional-update $as_me 1.15, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -3150,7 +3150,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-transactional-update config.status 1.14
+transactional-update config.status 1.15
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-1.14/configure.ac 
new/transactional-update-1.15/configure.ac
--- old/transactional-update-1.14/configure.ac  2017-04-21 11:24:16.000000000 
+0200
+++ new/transactional-update-1.15/configure.ac  2017-06-01 15:53:57.000000000 
+0200
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_INIT(transactional-update, 1.14)
+AC_INIT(transactional-update, 1.15)
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([sbin/transactional-update.in])
 AC_PREFIX_DEFAULT(/usr)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-1.14/logrotate/Makefile.in 
new/transactional-update-1.15/logrotate/Makefile.in
--- old/transactional-update-1.14/logrotate/Makefile.in 2017-04-21 
11:28:53.000000000 +0200
+++ new/transactional-update-1.15/logrotate/Makefile.in 2017-06-01 
15:54:35.000000000 +0200
@@ -238,9 +238,9 @@
              exit 1;; \
          esac; \
        done; \
-       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu logrotate/Makefile'; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign logrotate/Makefile'; \
        $(am__cd) $(top_srcdir) && \
-         $(AUTOMAKE) --gnu logrotate/Makefile
+         $(AUTOMAKE) --foreign logrotate/Makefile
 .PRECIOUS: Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
        @case '$?' in \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-1.14/man/Makefile.in 
new/transactional-update-1.15/man/Makefile.in
--- old/transactional-update-1.14/man/Makefile.in       2017-04-21 
11:28:53.000000000 +0200
+++ new/transactional-update-1.15/man/Makefile.in       2017-06-01 
15:54:35.000000000 +0200
@@ -261,9 +261,9 @@
              exit 1;; \
          esac; \
        done; \
-       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
        $(am__cd) $(top_srcdir) && \
-         $(AUTOMAKE) --gnu man/Makefile
+         $(AUTOMAKE) --foreign man/Makefile
 .PRECIOUS: Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
        @case '$?' in \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-1.14/man/transactional-update.8 
new/transactional-update-1.15/man/transactional-update.8
--- old/transactional-update-1.14/man/transactional-update.8    2017-04-21 
11:28:57.000000000 +0200
+++ new/transactional-update-1.15/man/transactional-update.8    2017-06-01 
15:53:10.000000000 +0200
@@ -2,12 +2,12 @@
 .\"     Title: transactional-update
 .\"    Author: Thorsten Kukuk <[email protected]>
 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
-.\"      Date: 04/21/2017
+.\"      Date: 06/01/2017
 .\"    Manual: transactional-update
 .\"    Source: transactional-update
 .\"  Language: English
 .\"
-.TH "TRANSACTIONAL\-UPDAT" "8" "04/21/2017" "transactional-update" 
"transactional-update"
+.TH "TRANSACTIONAL\-UPDAT" "8" "06/01/2017" "transactional-update" 
"transactional-update"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -35,7 +35,7 @@
 .HP \w'\fBtransactional\-update\fR\ 'u
 \fBtransactional\-update\fR [cleanup] [up | dup | patch | initrd] [kdump] 
[reboot]
 .HP \w'\fBtransactional\-update\fR\ 'u
-\fBtransactional\-update\fR [cleanup] [reboot] ptf install | remove  
<RPM>\&.\&.\&.<RPM>
+\fBtransactional\-update\fR [cleanup] [reboot] pkg install | remove  
<RPM>\&.\&.\&.<RPM>
 .HP \w'\fBtransactional\-update\fR\ 'u
 \fBtransactional\-update\fR rollback [number]
 .PP
@@ -101,9 +101,9 @@
 is used to update the snapshot\&. Afterwards, the snapshot is activated and 
will be used as the new root filesystem during next boot\&.
 .RE
 .PP
-\fBptf install\fR \fI<RPM> \&.\&.\&. <RPM>\fR
+\fBpkg install\fR \fI<RPM> \&.\&.\&. <RPM>\fR
 .RS 4
-A PTF consist of several RPMs can be installed in the system\&.
+A PTF or other packages in RPM format can be installed in the system\&.
 .RE
 .PP
 \fBptf remove\fR \fI<RPM> \&.\&.\&. <RPM>\fR
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/transactional-update-1.14/man/transactional-update.8.html 
new/transactional-update-1.15/man/transactional-update.8.html
--- old/transactional-update-1.14/man/transactional-update.8.html       
2017-04-21 11:28:57.000000000 +0200
+++ new/transactional-update-1.15/man/transactional-update.8.html       
2017-06-01 15:53:10.000000000 +0200
@@ -16,7 +16,7 @@
       visibility: visible;
     }
   </style><a href="transactional-update.index.html">Index </a><span 
style="float:right">transactional-update 1.14</span><hr><div 
class="refentry"><a name="transactional-update.8"></a><div 
class="titlepage"></div><div class="refnamediv"><a 
name="name"></a><h2>Name</h2><p>transactional-update, 
transactional-update.service, transactional-update.timer — Apply updates to the 
system in an atomic way via transactional
-    updates.</p></div><div class="refsynopsisdiv"><a 
name="synopsis"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>  [--help] [--version]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [ up  |   dup  |   patch  |   initrd ] [kdump] [reboot]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [reboot]  ptf    install  |   remove    &lt;RPM&gt;...&lt;RPM&gt; 
</p></div><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>   rollback  
[number]</p></div><p><code 
class="filename">transactional-update.service</code></p><p><code 
class="filename">transactional-update.timer</code></p></div><div 
class="refsect1"><a name="description"></a><h2 id="DESCRIPTION">DESCRIPTION<a 
class="headerlink" title="Permalink to this headline" 
href="#DESCRIPTION">¶</a></h2><p><span 
class="command"><strong>transactional-update</strong></span> updates the system
+    updates.</p></div><div class="refsynopsisdiv"><a 
name="synopsis"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>  [--help] [--version]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [ up  |   dup  |   patch  |   initrd ] [kdump] [reboot]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [reboot]  pkg    install  |   remove    &lt;RPM&gt;...&lt;RPM&gt; 
</p></div><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>   rollback  
[number]</p></div><p><code 
class="filename">transactional-update.service</code></p><p><code 
class="filename">transactional-update.timer</code></p></div><div 
class="refsect1"><a name="description"></a><h2 id="DESCRIPTION">DESCRIPTION<a 
class="headerlink" title="Permalink to this headline" 
href="#DESCRIPTION">¶</a></h2><p><span 
class="command"><strong>transactional-update</strong></span> updates the system
 in a transactional way, which means: it is atomic, so either the patches are
 fully applied or nothing is changed. The update does not influence your
 running system and it can be rolled back. To activate the changes, the system
@@ -58,8 +58,8 @@
        <span class="command"><strong>zypper patch</strong></span> is used to 
update the snapshot.
        Afterwards, the snapshot is activated and will be used as the new root
        filesystem during next boot.
-      </p></dd><dt id="ptf install &lt;RPM&gt; ... &lt;RPM&gt;"><span 
class="term"><code class="option">ptf install</code> <em 
class="replaceable"><code>&lt;RPM&gt; ... &lt;RPM&gt;</code></em></span><a 
class="headerlink" title="Permalink to this term" 
href="#ptf%20install%20&lt;RPM&gt;%20...%20&lt;RPM&gt;">¶</a></dt><dd><p>
-       A PTF consist of several RPMs can be installed in the system.
+      </p></dd><dt id="pkg install &lt;RPM&gt; ... &lt;RPM&gt;"><span 
class="term"><code class="option">pkg install</code> <em 
class="replaceable"><code>&lt;RPM&gt; ... &lt;RPM&gt;</code></em></span><a 
class="headerlink" title="Permalink to this term" 
href="#pkg%20install%20&lt;RPM&gt;%20...%20&lt;RPM&gt;">¶</a></dt><dd><p>
+       A PTF or other packages in RPM format can be installed in the system.
       </p></dd><dt id="ptf remove &lt;RPM&gt; ... &lt;RPM&gt;"><span 
class="term"><code class="option">ptf remove</code> <em 
class="replaceable"><code>&lt;RPM&gt; ... &lt;RPM&gt;</code></em></span><a 
class="headerlink" title="Permalink to this term" 
href="#ptf%20remove%20&lt;RPM&gt;%20...%20&lt;RPM&gt;">¶</a></dt><dd><p>
        A PTF consist of several RPMs can be removed from the system.
       </p></dd><dt id="initrd"><span class="term"><code 
class="option">initrd</code></span><a class="headerlink" title="Permalink to 
this term" href="#initrd">¶</a></dt><dd><p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/transactional-update-1.14/man/transactional-update.8.xml 
new/transactional-update-1.15/man/transactional-update.8.xml
--- old/transactional-update-1.14/man/transactional-update.8.xml        
2017-04-21 10:29:42.000000000 +0200
+++ new/transactional-update-1.15/man/transactional-update.8.xml        
2017-06-01 15:52:51.000000000 +0200
@@ -74,7 +74,7 @@
       <command>transactional-update</command>
       <arg choice='opt'>cleanup</arg>
       <arg choice='opt'>reboot</arg>
-      <arg choice='plain'>ptf</arg>
+      <arg choice='plain'>pkg</arg>
       <group choice='plain'>
        <arg choice='plain'>install</arg>
        <arg choice='plain'>remove</arg>
@@ -178,10 +178,10 @@
     </listitem>
   </varlistentry>
   <varlistentry>
-    <term><option>ptf install</option> <replaceable>&lt;RPM&gt; ... 
&lt;RPM&gt;</replaceable></term>
+    <term><option>pkg install</option> <replaceable>&lt;RPM&gt; ... 
&lt;RPM&gt;</replaceable></term>
     <listitem>
       <para>
-       A PTF consist of several RPMs can be installed in the system.
+       A PTF or other packages in RPM format can be installed in the system.
       </para>
     </listitem>
   </varlistentry>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/transactional-update-1.14/man/transactional-update.service.8.html 
new/transactional-update-1.15/man/transactional-update.service.8.html
--- old/transactional-update-1.14/man/transactional-update.service.8.html       
2017-04-21 11:28:57.000000000 +0200
+++ new/transactional-update-1.15/man/transactional-update.service.8.html       
2017-06-01 15:53:10.000000000 +0200
@@ -16,7 +16,7 @@
       visibility: visible;
     }
   </style><a href="transactional-update.index.html">Index </a><span 
style="float:right">transactional-update 1.14</span><hr><div 
class="refentry"><a name="transactional-update.8"></a><div 
class="titlepage"></div><div class="refnamediv"><a 
name="name"></a><h2>Name</h2><p>transactional-update, 
transactional-update.service, transactional-update.timer — Apply updates to the 
system in an atomic way via transactional
-    updates.</p></div><div class="refsynopsisdiv"><a 
name="synopsis"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>  [--help] [--version]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [ up  |   dup  |   patch  |   initrd ] [kdump] [reboot]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [reboot]  ptf    install  |   remove    &lt;RPM&gt;...&lt;RPM&gt; 
</p></div><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>   rollback  
[number]</p></div><p><code 
class="filename">transactional-update.service</code></p><p><code 
class="filename">transactional-update.timer</code></p></div><div 
class="refsect1"><a name="description"></a><h2 id="DESCRIPTION">DESCRIPTION<a 
class="headerlink" title="Permalink to this headline" 
href="#DESCRIPTION">¶</a></h2><p><span 
class="command"><strong>transactional-update</strong></span> updates the system
+    updates.</p></div><div class="refsynopsisdiv"><a 
name="synopsis"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>  [--help] [--version]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [ up  |   dup  |   patch  |   initrd ] [kdump] [reboot]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [reboot]  pkg    install  |   remove    &lt;RPM&gt;...&lt;RPM&gt; 
</p></div><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>   rollback  
[number]</p></div><p><code 
class="filename">transactional-update.service</code></p><p><code 
class="filename">transactional-update.timer</code></p></div><div 
class="refsect1"><a name="description"></a><h2 id="DESCRIPTION">DESCRIPTION<a 
class="headerlink" title="Permalink to this headline" 
href="#DESCRIPTION">¶</a></h2><p><span 
class="command"><strong>transactional-update</strong></span> updates the system
 in a transactional way, which means: it is atomic, so either the patches are
 fully applied or nothing is changed. The update does not influence your
 running system and it can be rolled back. To activate the changes, the system
@@ -58,8 +58,8 @@
        <span class="command"><strong>zypper patch</strong></span> is used to 
update the snapshot.
        Afterwards, the snapshot is activated and will be used as the new root
        filesystem during next boot.
-      </p></dd><dt id="ptf install &lt;RPM&gt; ... &lt;RPM&gt;"><span 
class="term"><code class="option">ptf install</code> <em 
class="replaceable"><code>&lt;RPM&gt; ... &lt;RPM&gt;</code></em></span><a 
class="headerlink" title="Permalink to this term" 
href="#ptf%20install%20&lt;RPM&gt;%20...%20&lt;RPM&gt;">¶</a></dt><dd><p>
-       A PTF consist of several RPMs can be installed in the system.
+      </p></dd><dt id="pkg install &lt;RPM&gt; ... &lt;RPM&gt;"><span 
class="term"><code class="option">pkg install</code> <em 
class="replaceable"><code>&lt;RPM&gt; ... &lt;RPM&gt;</code></em></span><a 
class="headerlink" title="Permalink to this term" 
href="#pkg%20install%20&lt;RPM&gt;%20...%20&lt;RPM&gt;">¶</a></dt><dd><p>
+       A PTF or other packages in RPM format can be installed in the system.
       </p></dd><dt id="ptf remove &lt;RPM&gt; ... &lt;RPM&gt;"><span 
class="term"><code class="option">ptf remove</code> <em 
class="replaceable"><code>&lt;RPM&gt; ... &lt;RPM&gt;</code></em></span><a 
class="headerlink" title="Permalink to this term" 
href="#ptf%20remove%20&lt;RPM&gt;%20...%20&lt;RPM&gt;">¶</a></dt><dd><p>
        A PTF consist of several RPMs can be removed from the system.
       </p></dd><dt id="initrd"><span class="term"><code 
class="option">initrd</code></span><a class="headerlink" title="Permalink to 
this term" href="#initrd">¶</a></dt><dd><p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/transactional-update-1.14/man/transactional-update.timer.8.html 
new/transactional-update-1.15/man/transactional-update.timer.8.html
--- old/transactional-update-1.14/man/transactional-update.timer.8.html 
2017-04-21 11:28:57.000000000 +0200
+++ new/transactional-update-1.15/man/transactional-update.timer.8.html 
2017-06-01 15:53:10.000000000 +0200
@@ -16,7 +16,7 @@
       visibility: visible;
     }
   </style><a href="transactional-update.index.html">Index </a><span 
style="float:right">transactional-update 1.14</span><hr><div 
class="refentry"><a name="transactional-update.8"></a><div 
class="titlepage"></div><div class="refnamediv"><a 
name="name"></a><h2>Name</h2><p>transactional-update, 
transactional-update.service, transactional-update.timer — Apply updates to the 
system in an atomic way via transactional
-    updates.</p></div><div class="refsynopsisdiv"><a 
name="synopsis"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>  [--help] [--version]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [ up  |   dup  |   patch  |   initrd ] [kdump] [reboot]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [reboot]  ptf    install  |   remove    &lt;RPM&gt;...&lt;RPM&gt; 
</p></div><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>   rollback  
[number]</p></div><p><code 
class="filename">transactional-update.service</code></p><p><code 
class="filename">transactional-update.timer</code></p></div><div 
class="refsect1"><a name="description"></a><h2 id="DESCRIPTION">DESCRIPTION<a 
class="headerlink" title="Permalink to this headline" 
href="#DESCRIPTION">¶</a></h2><p><span 
class="command"><strong>transactional-update</strong></span> updates the system
+    updates.</p></div><div class="refsynopsisdiv"><a 
name="synopsis"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>  [--help] [--version]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [ up  |   dup  |   patch  |   initrd ] [kdump] [reboot]</p></div><div 
class="cmdsynopsis"><p><code class="command">transactional-update</code>  
[cleanup] [reboot]  pkg    install  |   remove    &lt;RPM&gt;...&lt;RPM&gt; 
</p></div><div class="cmdsynopsis"><p><code 
class="command">transactional-update</code>   rollback  
[number]</p></div><p><code 
class="filename">transactional-update.service</code></p><p><code 
class="filename">transactional-update.timer</code></p></div><div 
class="refsect1"><a name="description"></a><h2 id="DESCRIPTION">DESCRIPTION<a 
class="headerlink" title="Permalink to this headline" 
href="#DESCRIPTION">¶</a></h2><p><span 
class="command"><strong>transactional-update</strong></span> updates the system
 in a transactional way, which means: it is atomic, so either the patches are
 fully applied or nothing is changed. The update does not influence your
 running system and it can be rolled back. To activate the changes, the system
@@ -58,8 +58,8 @@
        <span class="command"><strong>zypper patch</strong></span> is used to 
update the snapshot.
        Afterwards, the snapshot is activated and will be used as the new root
        filesystem during next boot.
-      </p></dd><dt id="ptf install &lt;RPM&gt; ... &lt;RPM&gt;"><span 
class="term"><code class="option">ptf install</code> <em 
class="replaceable"><code>&lt;RPM&gt; ... &lt;RPM&gt;</code></em></span><a 
class="headerlink" title="Permalink to this term" 
href="#ptf%20install%20&lt;RPM&gt;%20...%20&lt;RPM&gt;">¶</a></dt><dd><p>
-       A PTF consist of several RPMs can be installed in the system.
+      </p></dd><dt id="pkg install &lt;RPM&gt; ... &lt;RPM&gt;"><span 
class="term"><code class="option">pkg install</code> <em 
class="replaceable"><code>&lt;RPM&gt; ... &lt;RPM&gt;</code></em></span><a 
class="headerlink" title="Permalink to this term" 
href="#pkg%20install%20&lt;RPM&gt;%20...%20&lt;RPM&gt;">¶</a></dt><dd><p>
+       A PTF or other packages in RPM format can be installed in the system.
       </p></dd><dt id="ptf remove &lt;RPM&gt; ... &lt;RPM&gt;"><span 
class="term"><code class="option">ptf remove</code> <em 
class="replaceable"><code>&lt;RPM&gt; ... &lt;RPM&gt;</code></em></span><a 
class="headerlink" title="Permalink to this term" 
href="#ptf%20remove%20&lt;RPM&gt;%20...%20&lt;RPM&gt;">¶</a></dt><dd><p>
        A PTF consist of several RPMs can be removed from the system.
       </p></dd><dt id="initrd"><span class="term"><code 
class="option">initrd</code></span><a class="headerlink" title="Permalink to 
this term" href="#initrd">¶</a></dt><dd><p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-1.14/sbin/Makefile.in 
new/transactional-update-1.15/sbin/Makefile.in
--- old/transactional-update-1.14/sbin/Makefile.in      2017-04-21 
11:28:53.000000000 +0200
+++ new/transactional-update-1.15/sbin/Makefile.in      2017-06-01 
15:54:35.000000000 +0200
@@ -238,9 +238,9 @@
              exit 1;; \
          esac; \
        done; \
-       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu sbin/Makefile'; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sbin/Makefile'; \
        $(am__cd) $(top_srcdir) && \
-         $(AUTOMAKE) --gnu sbin/Makefile
+         $(AUTOMAKE) --foreign sbin/Makefile
 .PRECIOUS: Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
        @case '$?' in \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/transactional-update-1.14/sbin/transactional-update.in 
new/transactional-update-1.15/sbin/transactional-update.in
--- old/transactional-update-1.14/sbin/transactional-update.in  2017-04-21 
11:01:08.000000000 +0200
+++ new/transactional-update-1.15/sbin/transactional-update.in  2017-06-01 
10:40:50.000000000 +0200
@@ -32,6 +32,7 @@
 DO_ROLLBACK=0
 ROLLBACK_SNAPSHOT=0
 REBOOT_AFTERWARDS=0
+USE_SALT_GRAINS=0
 LOGFILE="/var/log/transactional-update.log"
 STATE_FILE="/var/lib/misc/transactional-update.state"
 PACKAGE_UPDATES=0
@@ -42,7 +43,7 @@
 usage() {
     echo "Usage: transactional-update --help|--version"
     echo "       transactional-update 
[cleanup][up|dup|patch|initrd][kdump][reboot]"
-    echo "       transactional-update [cleanup] [reboot] ptf install|remove 
PKG1..PKGN"
+    echo "       transactional-update [cleanup] [reboot] pkg install|remove 
PKG1..PKGN"
     echo "       transactional-update rollback [number]"
     exit $1
 }
@@ -117,6 +118,7 @@
     fi
 }
 
+# only called in error case
 quit() {
     if [ -n "${SNAPSHOT_ID}" ] ; then
        log_error "Removing snapshot #${SNAPSHOT_ID}..."
@@ -126,6 +128,20 @@
        log_error "Removing snapshot #${SECOND_SNAPSHOT_ID}..."
        snapper delete ${SECOND_SNAPSHOT_ID} |& tee -a ${LOGFILE}
     fi
+    if [ $USE_SALT_GRAINS -eq 1 ]; then
+       if [ -f /etc/salt/grains ]; then
+           grep -q tx_update_failed /etc/salt/grains
+           if [ $? -ne 0 ]; then
+               # Add variable to existing salt grains
+               echo "tx_update_failed: true" >> /etc/salt/grains
+           else
+               # modify variable in existing salt grains
+               sed -i -e 's|tx_update_failed:.*|tx_update_failed: true|g' 
/etc/salt/grains
+           fi
+       else
+           echo "tx_update_failed: true" > /etc/salt/grains
+       fi
+    fi
     log_info "transactional-update finished"
     exit $1
 }
@@ -155,7 +171,7 @@
            ZYPPER_ARG=$1
             shift
             ;;
-       ptf)
+       ptf|pkg|package)
            shift
            if [ $# -eq 0 ]; then
                usage 1
@@ -214,6 +230,11 @@
                shift
            fi
            ;;
+       salt)
+           REBOOT_AFTERWARDS=1
+           USE_SALT_GRAINS=1
+           shift
+           ;;
         -h|--help)
             usage 0
             ;;
@@ -546,18 +567,37 @@
 
 if [ ${EXITCODE} -eq 0 ]; then
     if [ $REBOOT_AFTERWARDS -eq 1 ]; then
-       if [ -x /usr/sbin/rebootmgrctl ]; then
-           /usr/sbin/rebootmgrctl is-active --quiet
-           if [ $? -eq 0 ]; then
-               # rebootmgrctl is running
-               /usr/sbin/rebootmgrctl reboot
-               log_info "transactional-update finished - informed rebootmgr"
-               exit 0
+       if [ $USE_SALT_GRAINS -eq 1 ]; then
+           log_info "transactional-update finished - created salt grains"
+           if [ -f /etc/salt/grains ]; then
+               grep -q tx_update_reboot_needed /etc/salt/grains
+               if [ $? -ne 0 ]; then
+                   # Add variable to existing salt grains
+                   echo "tx_update_reboot_needed: true" >> /etc/salt/grains
+               else
+                   # modify variable in existing salt grains
+                   sed -i -e 
's|tx_update_reboot_needed:.*|tx_update_reboot_needed: true|g' /etc/salt/grains
+               fi
+           else
+               echo "tx_update_reboot_needed: true" > /etc/salt/grains
+           fi
+           # Reset tx_update_failed if exist
+           sed -i -e 's|tx_update_failed:.*|tx_update_failed: false|g' 
/etc/salt/grains
+           exit 0
+       else
+           if [ -x /usr/sbin/rebootmgrctl ]; then
+               /usr/sbin/rebootmgrctl is-active --quiet
+               if [ $? -eq 0 ]; then
+                   # rebootmgrctl is running
+                   /usr/sbin/rebootmgrctl reboot
+                   log_info "transactional-update finished - informed 
rebootmgr"
+                   exit 0
+               fi
            fi
+           log_info "transactional-update finished - rebooting machine"
+           sync
+           systemctl reboot |& tee -a ${LOGFILE}
        fi
-       log_info "transactional-update finished - rebooting machine"
-       sync
-       systemctl reboot |& tee -a ${LOGFILE}
     elif [ $PACKAGE_UPDATES -gt 1 ]; then
        echo "Please reboot your machine to activate the changes and avoid data 
loss"
     fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-1.14/systemd/Makefile.in 
new/transactional-update-1.15/systemd/Makefile.in
--- old/transactional-update-1.14/systemd/Makefile.in   2017-04-21 
11:28:53.000000000 +0200
+++ new/transactional-update-1.15/systemd/Makefile.in   2017-06-01 
15:54:35.000000000 +0200
@@ -238,9 +238,9 @@
              exit 1;; \
          esac; \
        done; \
-       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu systemd/Makefile'; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign systemd/Makefile'; \
        $(am__cd) $(top_srcdir) && \
-         $(AUTOMAKE) --gnu systemd/Makefile
+         $(AUTOMAKE) --foreign systemd/Makefile
 .PRECIOUS: Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
        @case '$?' in \


Reply via email to