Hello community, here is the log from the commit of package jeos-firstboot for openSUSE:Factory checked in at 2017-10-26 18:44:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/jeos-firstboot (Old) and /work/SRC/openSUSE:Factory/.jeos-firstboot.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "jeos-firstboot" Thu Oct 26 18:44:45 2017 rev:5 rq:536589 version:0.0+git20171024.4c4ec65 Changes: -------- --- /work/SRC/openSUSE:Factory/jeos-firstboot/jeos-firstboot.changes 2017-07-06 00:03:52.046343844 +0200 +++ /work/SRC/openSUSE:Factory/.jeos-firstboot.new/jeos-firstboot.changes 2017-10-26 18:44:46.686847947 +0200 @@ -1,0 +2,7 @@ +Wed Oct 25 16:03:33 UTC 2017 - [email protected] + +- Update to version 0.0+git20171024.4c4ec65: + * Add require for snapshots mount point + * Initial network configuration fixes bsc#1061829 + +------------------------------------------------------------------- Old: ---- jeos-firstboot-0.0+git20170629.77ff28f.tar.xz New: ---- jeos-firstboot-0.0+git20171024.4c4ec65.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ jeos-firstboot.spec ++++++ --- /var/tmp/diff_new_pack.SjBddO/_old 2017-10-26 18:44:47.322818265 +0200 +++ /var/tmp/diff_new_pack.SjBddO/_new 2017-10-26 18:44:47.326818078 +0200 @@ -17,7 +17,7 @@ Name: jeos-firstboot -Version: 0.0+git20170629.77ff28f +Version: 0.0+git20171024.4c4ec65 Release: 0 Summary: Simple text based JeOS first boot wizard License: MIT ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.SjBddO/_old 2017-10-26 18:44:47.366816212 +0200 +++ /var/tmp/diff_new_pack.SjBddO/_new 2017-10-26 18:44:47.366816212 +0200 @@ -1,4 +1,4 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/openSUSE/jeos-firstboot.git</param> - <param name="changesrevision">5fb1430c7ca504551b2c7bd4fa7825dc9ea73bfe</param></service></servicedata> \ No newline at end of file + <param name="changesrevision">1feb4144d60f8b9e2c509b2cffb09371a97fad36</param></service></servicedata> \ No newline at end of file ++++++ jeos-firstboot-0.0+git20170629.77ff28f.tar.xz -> jeos-firstboot-0.0+git20171024.4c4ec65.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeos-firstboot-0.0+git20170629.77ff28f/files/usr/lib/jeos-firstboot new/jeos-firstboot-0.0+git20171024.4c4ec65/files/usr/lib/jeos-firstboot --- old/jeos-firstboot-0.0+git20170629.77ff28f/files/usr/lib/jeos-firstboot 2017-06-29 13:55:41.000000000 +0200 +++ new/jeos-firstboot-0.0+git20171024.4c4ec65/files/usr/lib/jeos-firstboot 2017-10-24 13:01:25.000000000 +0200 @@ -233,6 +233,34 @@ run sed -i -e "s/LOADER_TYPE=.*/LOADER_TYPE=grub2/g" /etc/sysconfig/bootloader fi +# Configure initial network settings +# +shopt -s nullglob + +candidates=() +for p in /sys/class/net/* ; do + test -f "$p" && continue # skip bonding_masters file + + # only devices having ID_NET_NAME.* attrs + udevadm info -q all -p "$p" | grep -qs ID_NET_NAME || continue + d=${p##*/} + + unset IPADDR GATEWAYS + eval `wicked test dhcp4 "$d" 2>/dev/null | grep -E "^IPADDR=|^GATEWAYS="` + ip link set down "$d" # set link down after probe once done + + test -n "$IPADDR" && candidates+=("$d") || continue # ok, track it + test -n "$GATEWAYS" && candidates=("$d") || continue # just use it + break +done + +for d in ${candidates[@]} ; do + rm -f "/etc/sysconfig/network/ifcfg-$d" || exit 1 + printf "STARTMODE=hotplug\nBOOTPROTO=dhcp\nDHCLIENT_SET_HOSTNAME=yes\n" \ + > "/etc/sysconfig/network/ifcfg-$d" + break # one is enough +done + #d --infobox "Creating snapshot ..." 3 40 || true #run snapper --no-dbus -v create -d "Initial Status" --userdata "important=yes" || d --msgbox "snapper failed" 0 0 || true if [ ! -e /.snapshots/3 ]; then diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeos-firstboot-0.0+git20170629.77ff28f/files/usr/lib/systemd/system/jeos-firstboot.service new/jeos-firstboot-0.0+git20171024.4c4ec65/files/usr/lib/systemd/system/jeos-firstboot.service --- old/jeos-firstboot-0.0+git20170629.77ff28f/files/usr/lib/systemd/system/jeos-firstboot.service 2017-06-29 13:55:41.000000000 +0200 +++ new/jeos-firstboot-0.0+git20171024.4c4ec65/files/usr/lib/systemd/system/jeos-firstboot.service 2017-10-24 13:01:25.000000000 +0200 @@ -10,8 +10,9 @@ DefaultDependencies=no Conflicts=shutdown.target After=systemd-remount-fs.service -Before=systemd-sysusers.service sysinit.target shutdown.target +Before=sysinit.target shutdown.target ConditionPathIsReadWrite=/etc +RequiresMountsFor=/.snapshots ConditionFirstBoot=yes [Service]
