5c11ee24a0
- Create and own more systemd drop-in directories. - Improve mini packages for bootstrapping. - do not mount /tmp as tmpfs by default. - Fix install script when there is no inittab - Create a systemd-mini specfile to prevent cycle in bootstrapping OBS-URL: https://build.opensuse.org/request/show/139371 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=300
17 lines
725 B
Bash
17 lines
725 B
Bash
#!/bin/sh
|
|
|
|
# This script is based on libcdio_spec-prepare.sh (thanks to sbrabec@suse.cz)
|
|
# create a -mini spec for systemd for bootstrapping
|
|
|
|
ORIG_SPEC=systemd
|
|
EDIT_WARNING="##### WARNING: please do not edit this auto generated spec file. Use the ${ORIG_SPEC}.spec! #####\n"
|
|
sed "s/^%define bootstrap.*$/${EDIT_WARNING}%define bootstrap 1/;
|
|
s/^%define udevpkgname.*$/${EDIT_WARNING}%define udevpkgname udev-mini/;
|
|
s/^\(Name:.*\)$/\1-mini/;
|
|
s/^BuildRoot.*/&\n\nProvides: %{real} = %{version}-%{release}\n/
|
|
" < ${ORIG_SPEC}.spec > ${ORIG_SPEC}-mini.spec
|
|
cp ${ORIG_SPEC}.changes ${ORIG_SPEC}-mini.changes
|
|
cp ${ORIG_SPEC}-rpmlintrc ${ORIG_SPEC}-mini-rpmlintrc
|
|
|
|
osc service localrun format_spec_file
|