Hello community,
here is the log from the commit of package live-net-installer for
openSUSE:Factory checked in at 2018-06-20 15:35:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/live-net-installer (Old)
and /work/SRC/openSUSE:Factory/.live-net-installer.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "live-net-installer"
Wed Jun 20 15:35:36 2018 rev:5 rq:617947 version:1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/live-net-installer/live-net-installer.changes
2018-05-29 10:49:26.174493909 +0200
+++
/work/SRC/openSUSE:Factory/.live-net-installer.new/live-net-installer.changes
2018-06-20 15:35:44.000547953 +0200
@@ -1,0 +2,5 @@
+Tue Jun 19 16:51:36 UTC 2018 - [email protected]
+
+- Option to perform a system upgrade instead of a fresh install
+
+-------------------------------------------------------------------
New:
----
upgrade.desktop
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ live-net-installer.spec ++++++
--- /var/tmp/diff_new_pack.5EaAKt/_old 2018-06-20 15:35:44.972512672 +0200
+++ /var/tmp/diff_new_pack.5EaAKt/_new 2018-06-20 15:35:44.976512527 +0200
@@ -27,6 +27,7 @@
Source2: installation.desktop
Source3: COPYING
Source4: extend
+Source5: upgrade.desktop
BuildRequires: coreutils
BuildRequires: yast2-branding-openSUSE
Requires: util-linux
@@ -69,6 +70,7 @@
%install
install -Dm 755 %{SOURCE1} %{buildroot}%{_sbindir}/start-install.sh
install -Dm 644 %{SOURCE2}
%{buildroot}%{_datadir}/applications/installation.desktop
+install -Dm 644 %{SOURCE5} %{buildroot}%{_datadir}/applications/upgrade.desktop
install -Dm 755 %{SOURCE4} %{buildroot}%{_sbindir}/extend
%files
@@ -76,5 +78,6 @@
%{_sbindir}/extend
%{_sbindir}/start-install.sh
%{_datadir}/applications/installation.desktop
+%{_datadir}/applications/upgrade.desktop
%changelog
++++++ start-install.sh ++++++
--- /var/tmp/diff_new_pack.5EaAKt/_old 2018-06-20 15:35:45.060509478 +0200
+++ /var/tmp/diff_new_pack.5EaAKt/_new 2018-06-20 15:35:45.064509333 +0200
@@ -26,6 +26,14 @@
echo "EFI: 0" >> /etc/install.inf
fi
+# Run the installer in update mode if the argument "upgrade" is provided
+for i in "$@"; do
+ if [[ $i == "upgrade" ]]; then
+ echo "Upgrade: 1" >> /etc/install.inf
+ break
+ fi
+done
+
# gnomesu does not add sbin to $PATH, so do it manually.
export PATH=/sbin:/usr/sbin:$PATH
++++++ upgrade.desktop ++++++
[Desktop Entry]
Type=Application
Name=Upgrade
GenericName=Upgrade
Comment=Upgrade an already installed system from online repositories
Icon=yast-live-install
Categories=System;X-SuSE-YaST;
Exec=xdg-su -c "/usr/sbin/start-install.sh upgrade"
StartupNotify=true