Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mbussolotto:branches:systemsmanagement:Uyuni:Master
dracut-mgrbootstrap
dracut-mgrbootstrap-git-0.f3309ea.obscpio
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dracut-mgrbootstrap-git-0.f3309ea.obscpio of Package dracut-mgrbootstrap
07070100000000000041ED000003E80000006400000002662798DF00000000000000000000000000000000000000000000001400000000dracut-mgrbootstrap07070100000001000081A4000003E80000006400000001662798DF000004C7000000000000000000000000000000000000003000000000dracut-mgrbootstrap/dracut-mgrbootstrap.changes------------------------------------------------------------------- Tue Jan 16 08:08:40 CET 2024 - jgonzalez@suse.com - version 5.0.1-1 * Bump version to 5.0.0 ------------------------------------------------------------------- Wed Sep 28 10:27:57 CEST 2022 - jgonzalez@suse.com - version 4.4.1-1 * Bump version to 4.4.0 ------------------------------------------------------------------- Mon Aug 09 10:06:04 CEST 2021 - jgonzalez@suse.com - version 4.3.1-1 - Bump version to 4.3.0 ------------------------------------------------------------------- Fri Sep 18 11:06:01 CEST 2020 - jgonzalez@suse.com - version 4.2.1-1 - Update package version to 4.2.0 ------------------------------------------------------------------- Fri Jan 31 15:19:42 CET 2020 - jgonzalez@suse.com - version 4.1.1-1 - detect release package to install in the initrd ------------------------------------------------------------------- Wed Jan 29 15:44:52 CET 2020 - mc@suse.de - version 0.2-1 - provide dracut files to create bare-metal image for pre registration of systems (bsc#1153269) ------------------------------------------------------------------- Tue Jan 28 10:54:32 UTC 2020 - Michael Calmer <mc@suse.com> - new package 07070100000002000081A4000003E80000006400000001662798DF000005A0000000000000000000000000000000000000002D00000000dracut-mgrbootstrap/dracut-mgrbootstrap.spec# # spec file for package dracut-mgrbootstrap # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: dracut-mgrbootstrap Version: 5.0.1 Release: 1 BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: dracut-mgrbootstrap-%{version}.tar.bz2 Summary: PXE network boot dracut module License: GPL-2.0-only Group: System/Packages BuildArch: noarch BuildRequires: dracut Requires: dracut %description dracut module for booting PXE images. %prep %setup -q %build %install mkdir -p %{buildroot}/usr/lib/dracut/modules.d/50mgrbootstrap cp -R mgrbootstrap/* %{buildroot}/usr/lib/dracut/modules.d/50mgrbootstrap chmod 755 %{buildroot}/usr/lib/dracut/modules.d/50mgrbootstrap/* %files %defattr(-,root,root,-) /usr/lib/dracut/modules.d/50mgrbootstrap %changelog 07070100000003000041ED000003E80000006400000002662798DF00000000000000000000000000000000000000000000002100000000dracut-mgrbootstrap/mgrbootstrap07070100000004000081ED000003E80000006400000001662798DF00000027000000000000000000000000000000000000003600000000dracut-mgrbootstrap/mgrbootstrap/mgrbootstrap-root.sh#!/bin/sh root=mgrbootstrap rootok=1 07070100000005000081ED000003E80000006400000001662798DF0000079E000000000000000000000000000000000000003100000000dracut-mgrbootstrap/mgrbootstrap/mgrbootstrap.sh#!/bin/bash test -s /etc/rc.status && . /etc/rc.status && rc_reset if ! declare -f Echo > /dev/null ; then Echo() { echo "$@" } fi function register() { local mycert_file="RHN-ORG-TRUSTED-SSL-CERT" local mycert="/usr/share/rhn/$mycert_file" if ! /usr/bin/wget http://$SW_HOSTNAME/pub/$mycert_file -O $mycert; then return 1 fi for f in /etc/sysconfig/rhn/*; do if [ -f "$f" ]; then sed -i "s/RHNS-CA-CERT/$mycert_file/g" "$f" fi done if ! /usr/sbin/rhnreg_ks --serverUrl=https://$SW_HOSTNAME/XMLRPC --activationkey=$ACTIVATION_KEY --force; then return 1 fi return 0 } # fix hostname for postfix REALHOSTNAME=`hostname -f` if [ -z "$REALHOSTNAME" ]; then for i in `ip -f inet -o addr show scope global | awk '{print $4}' | awk -F \/ '{print $1}'`; do for j in `dig +noall +answer +time=2 +tries=1 -x $i | awk '{print $5}' | sed 's/\.$//'`; do if [ -n "$j" ]; then REALHOSTNAME=$j break 2 fi done done fi if [ -n "$REALHOSTNAME" ]; then echo "$REALHOSTNAME" > /etc/hostname fi rm -f /etc/machine-id mkdir -p /var/lib/dbus rm -f /var/lib/dbus/machine-id dbus-uuidgen --ensure systemd-machine-id-setup ACTIVATION_KEY=$(rc_cmdline spacewalk_activationkey) ACTIVATION_KEY=${ACTIVATION_KEY#spacewalk_activationkey=} SW_HOSTNAME=$(rc_cmdline spacewalk_hostname) SW_HOSTNAME=${SW_HOSTNAME#spacewalk_hostname=} READY=1 if [ -z "$ACTIVATION_KEY" ]; then Echo "Activation Key missing" sleep 10 READY=0 fi if [ -z "$SW_HOSTNAME" ]; then Echo "Spacewalk Hostname is missing" sleep 10 READY=0 fi if [ $READY -eq 1 ]; then if ! register; then sleep 10 else Echo "Successfully registered!" sleep 2 fi fi FINALLY=$(rc_cmdline spacewalk_finally) FINALLY=${FINALLY#spacewalk_finally=} case "$FINALLY" in running) Echo "keep instance running";; *) reboot --halt -p -f;; esac rc_status -v rc_exit 07070100000006000081ED000003E80000006400000001662798DF000008EF000000000000000000000000000000000000003100000000dracut-mgrbootstrap/mgrbootstrap/module-setup.sh#!/bin/bash # called by dracut check() { return 0 } # called by dracut depends() { echo network return 0 } get_python_pkg_deps() { rpm -q --requires "$@" | while read req ver; do if [[ $req == rpmlib* ]]; then continue fi rpm -q --whatprovides "$req" done | grep -v 'no package provides'| sort -u } get_python_pkg_deps_recursive() { # get rpm with version for n in "$@"; do v=$(rpm -q "$n") deps=$(echo -e "$deps\n$v") done input="$deps" res="" while [ -n "$deps" ] ; do freeze="$deps" deps="" for d in $freeze; do if [[ $res == *$d* ]]; then # we got already the dependencies of this continue fi d2=$(get_python_pkg_deps $d) # we have dependencies of $d, store it in $res res=$(echo -e "$d\n$res" |sort -u) # add dependencies of $d2 to next round of deps to test deps=$(echo -e "$deps\n$d2" | sort -u) done done # be sure that original input is part of the list res=$(echo -e "$res\n$input" |sort -u) echo $res } # called by dracut install() { RELPKG=$(rpm -q --whatprovides --qf "%{name}\n" distribution-release) inst_multiple -o $(rpm -ql $(get_python_pkg_deps_recursive spacewalk-client-setup spacewalk-client-tools python3-spacewalk-client-tools python3-spacewalk-client-setup python3-zypp-plugin-spacewalk wget rpm $RELPKG) | \ grep -v '\.pyc$\|/etc/salt/minion_id\|/usr/share/locale/\|/usr/share/doc/\|/usr/share/man' ) inst_multiple -o /usr/lib64/libffi.so.7 # dracut dependency solver does not see this inst_multiple -o grep dig ldconfig date dbus-uuidgen systemd-machine-id-setup dmidecode seq parted \ lsblk partprobe mdadm dcounter mkswap curl head md5sum resize2fs mkfs mkfs.btrfs \ mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.fat mkfs.vfat mkfs.xfs sync cryptsetup busybox \ swapon rpm inst_multiple -o $(find /var/lib/rpm/ -type f) inst "/etc/rc.status" inst_hook cmdline 91 "$moddir/mgrbootstrap-root.sh" inst_hook pre-mount 99 "$moddir/mgrbootstrap.sh" echo "rd.neednet=1" > "${initdir}/etc/cmdline.d/50mgrbootstrap.conf" } 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor