mirror of
https://abf.rosa.ru/djam/calamares.git
synced 2025-02-23 15:42:49 +00:00
new snapshot, create new installer.target and use systemd.unit=installer.target for install boot option
This commit is contained in:
parent
42c52254ea
commit
c38a447f91
6 changed files with 60 additions and 47 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,5 +1,5 @@
|
||||||
sources:
|
sources:
|
||||||
OpenMandriva-adverts.tar.xz: d0833604f1ce5bdcc7a1560cc51f4c392a9ed665
|
OpenMandriva-adverts.tar.xz: d0833604f1ce5bdcc7a1560cc51f4c392a9ed665
|
||||||
calamares-1.0.0-20150415.tar.xz: a2d87be9d0ec5f721605de7b1bc1e1b241419539
|
calamares-1.0.0-20150418.tar.xz: c32e45641414b13b02aefa4e8a61f807558da665
|
||||||
calamares-partitionmanager-20150112.tar.xz: 9fd2828fde3ecb3692868ea186469424c5be580e
|
calamares-partitionmanager-20150112.tar.xz: 9fd2828fde3ecb3692868ea186469424c5be580e
|
||||||
openmandriva-install.svg: 42dfb6f517456e18695a147141643de7a9747ec3
|
openmandriva-install.svg: 42dfb6f517456e18695a147141643de7a9747ec3
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# tpgxyz@gmail.com
|
# tpgxyz@gmail.com
|
||||||
|
|
||||||
if grep -q '\binstall\b' /proc/cmdline; then
|
if grep -q '\bsystemd.unit=installer.target\b' /proc/cmdline; then
|
||||||
. /etc/locale.conf
|
. /etc/locale.conf
|
||||||
|
|
||||||
# ensure plymouth really has stopped
|
# ensure plymouth really has stopped
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# tpgxyz@gmail.com
|
# tpgxyz@gmail.com
|
||||||
|
|
||||||
if grep -q '\binstall\b' /proc/cmdline; then
|
if grep -q '\bsystemd.unit=installer.target\b' /proc/cmdline; then
|
||||||
if [ -x /usr/bin/startx ] && [ -x /usr/sbin/calamares-install-setup ]; then
|
if [ -x /usr/bin/startx ] && [ -x /usr/sbin/calamares-install-setup ]; then
|
||||||
/usr/bin/startx /usr/sbin/calamares-install-setup $* -- -dpi 96 vt1 -background none
|
/usr/bin/startx /usr/sbin/calamares-install-setup $* -- -dpi 96 vt1 -background none
|
||||||
else
|
else
|
||||||
|
|
|
@ -4,11 +4,10 @@ DefaultDependencies=no
|
||||||
After=livesys-late.service systemd-user-sessions.service getty@tty1.service plymouth-quit.service
|
After=livesys-late.service systemd-user-sessions.service getty@tty1.service plymouth-quit.service
|
||||||
Conflicts=getty@tty1.service
|
Conflicts=getty@tty1.service
|
||||||
Conflicts=getty@%i.service
|
Conflicts=getty@%i.service
|
||||||
Conflicts=display-manager.service
|
|
||||||
Before=display-manager.service
|
Before=display-manager.service
|
||||||
Before=getty.target
|
Before=getty.target
|
||||||
Wants=NetworkManager.service
|
Wants=NetworkManager.service
|
||||||
ConditionKernelCommandLine=|install
|
ConditionKernelCommandLine=|systemd.unit=installer.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=idle
|
Type=idle
|
||||||
|
@ -26,4 +25,4 @@ KillMode=process
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=calamares.target
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
%define calamdate 20150415
|
%define calamdate 20150418
|
||||||
%define partdate 20150112
|
%define partdate 20150112
|
||||||
|
|
||||||
%define major 1
|
%define major 1
|
||||||
%define libname %mklibname %{name} %{major}
|
%define libname %mklibname %{name} %{major}
|
||||||
%define develname %mklibname %{name} -d
|
%define develname %mklibname %{name} -d
|
||||||
|
|
||||||
Summary: Distribution-independent installer framework
|
Summary: Distribution-independent installer framework
|
||||||
Name: calamares
|
Name: calamares
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 0.%{calamdate}.1
|
Release: 0.%{calamdate}.1
|
||||||
|
@ -18,25 +18,26 @@ Source0: calamares-%{version}-%{calamdate}.tar.xz
|
||||||
Source1: calamares-partitionmanager-%{partdate}.tar.xz
|
Source1: calamares-partitionmanager-%{partdate}.tar.xz
|
||||||
Source2: calamares.rpmlintrc
|
Source2: calamares.rpmlintrc
|
||||||
Source3: %{name}.service
|
Source3: %{name}.service
|
||||||
Source4: %{name}-install-start
|
Source4: %{name}.target
|
||||||
Source5: %{name}-install-setup
|
Source5: %{name}-install-start
|
||||||
Source6: omv-bootloader.conf
|
Source6: %{name}-install-setup
|
||||||
Source7: omv-displaymanager.conf
|
Source7: omv-bootloader.conf
|
||||||
Source8: omv-finished.conf
|
Source8: omv-displaymanager.conf
|
||||||
Source9: omv-fstab.conf
|
Source9: omv-finished.conf
|
||||||
Source10: omv-grubcfg.conf
|
Source10: omv-fstab.conf
|
||||||
Source11: omv-keyboard.conf
|
Source11: omv-grubcfg.conf
|
||||||
Source12: omv-locale.conf
|
Source12: omv-keyboard.conf
|
||||||
Source13: omv-machineid.conf
|
Source13: omv-locale.conf
|
||||||
Source14: omv-mount.conf
|
Source14: omv-machineid.conf
|
||||||
Source15: omv-packages.conf
|
Source15: omv-mount.conf
|
||||||
Source16: omv-prepare.conf
|
Source16: omv-packages.conf
|
||||||
Source17: omv-services.conf
|
Source17: omv-prepare.conf
|
||||||
Source18: omv-settings.conf
|
Source18: omv-services.conf
|
||||||
Source19: omv-unpackfs.conf
|
Source19: omv-settings.conf
|
||||||
Source20: omv-users.conf
|
Source20: omv-unpackfs.conf
|
||||||
Source21: omv-partition.conf
|
Source21: omv-users.conf
|
||||||
Source22: omv-removeuser.conf
|
Source22: omv-partition.conf
|
||||||
|
Source23: omv-removeuser.conf
|
||||||
Source99: openmandriva-install.svg
|
Source99: openmandriva-install.svg
|
||||||
Source100: OpenMandriva-adverts.tar.xz
|
Source100: OpenMandriva-adverts.tar.xz
|
||||||
Patch1: calamares-0.17.0-20150112-openmandriva-desktop-file.patch
|
Patch1: calamares-0.17.0-20150112-openmandriva-desktop-file.patch
|
||||||
|
@ -148,29 +149,31 @@ mkdir -p %{buildroot}%{_sysconfdir}/calamares/branding/auto
|
||||||
touch %{buildroot}%{_sysconfdir}/calamares/branding/auto/branding.desc
|
touch %{buildroot}%{_sysconfdir}/calamares/branding/auto/branding.desc
|
||||||
|
|
||||||
# (tpg) settings specific for OMV
|
# (tpg) settings specific for OMV
|
||||||
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/calamares/modules/bootloader.conf
|
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/calamares/modules/bootloader.conf
|
||||||
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/calamares/modules/displaymanager.conf
|
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/calamares/modules/displaymanager.conf
|
||||||
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/calamares/modules/finished.conf
|
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/calamares/modules/finished.conf
|
||||||
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/calamares/modules/fstab.conf
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/calamares/modules/fstab.conf
|
||||||
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/calamares/modules/grubcfg.conf
|
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/calamares/modules/grubcfg.conf
|
||||||
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/calamares/modules/keyboard.conf
|
install -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/calamares/modules/keyboard.conf
|
||||||
install -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/calamares/modules/locale.conf
|
install -m 644 %{SOURCE13} %{buildroot}%{_sysconfdir}/calamares/modules/locale.conf
|
||||||
install -m 644 %{SOURCE13} %{buildroot}%{_sysconfdir}/calamares/modules/machineid.conf
|
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/calamares/modules/machineid.conf
|
||||||
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/calamares/modules/mount.conf
|
install -m 644 %{SOURCE15} %{buildroot}%{_sysconfdir}/calamares/modules/mount.conf
|
||||||
install -m 644 %{SOURCE15} %{buildroot}%{_sysconfdir}/calamares/modules/packages.conf
|
install -m 644 %{SOURCE16} %{buildroot}%{_sysconfdir}/calamares/modules/packages.conf
|
||||||
install -m 644 %{SOURCE16} %{buildroot}%{_sysconfdir}/calamares/modules/prepare.conf
|
install -m 644 %{SOURCE17} %{buildroot}%{_sysconfdir}/calamares/modules/prepare.conf
|
||||||
install -m 644 %{SOURCE17} %{buildroot}%{_sysconfdir}/calamares/modules/services.conf
|
install -m 644 %{SOURCE18} %{buildroot}%{_sysconfdir}/calamares/modules/services.conf
|
||||||
install -m 644 %{SOURCE18} %{buildroot}%{_sysconfdir}/calamares/settings.conf
|
install -m 644 %{SOURCE19} %{buildroot}%{_sysconfdir}/calamares/settings.conf
|
||||||
install -m 644 %{SOURCE19} %{buildroot}%{_sysconfdir}/calamares/modules/unpackfs.conf
|
install -m 644 %{SOURCE20} %{buildroot}%{_sysconfdir}/calamares/modules/unpackfs.conf
|
||||||
install -m 644 %{SOURCE20} %{buildroot}%{_sysconfdir}/calamares/modules/users.conf
|
install -m 644 %{SOURCE21} %{buildroot}%{_sysconfdir}/calamares/modules/users.conf
|
||||||
install -m 644 %{SOURCE21} %{buildroot}%{_sysconfdir}/calamares/modules/partition.conf
|
install -m 644 %{SOURCE22} %{buildroot}%{_sysconfdir}/calamares/modules/partition.conf
|
||||||
install -m 644 %{SOURCE22} %{buildroot}%{_sysconfdir}/calamares/modules/removeuser.conf
|
install -m 644 %{SOURCE23} %{buildroot}%{_sysconfdir}/calamares/modules/removeuser.conf
|
||||||
|
|
||||||
# (tpg) service files
|
# (tpg) service files
|
||||||
mkdir -p %{buildroot}{%{_unitdir},%{_sbindir}}
|
mkdir -p %{buildroot}{%{_unitdir},%{_sbindir},%{_sysconfdir}/systemd/system/calamares.target.wants}
|
||||||
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
|
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
install -m 755 %{SOURCE4} %{buildroot}%{_sbindir}/%{name}-install-start
|
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.target
|
||||||
install -m 744 %{SOURCE5} %{buildroot}%{_sbindir}/%{name}-install-setup
|
install -m 755 %{SOURCE5} %{buildroot}%{_sbindir}/%{name}-install-start
|
||||||
|
install -m 744 %{SOURCE6} %{buildroot}%{_sbindir}/%{name}-install-setup
|
||||||
|
ln -sf %{_unitdir}/%{name}.service %{buildroot}%{_sysconfdir}/systemd/system/calamares.target.wants/%{name}.service
|
||||||
|
|
||||||
install -d %{buildroot}%{_presetdir}
|
install -d %{buildroot}%{_presetdir}
|
||||||
cat > %{buildroot}%{_presetdir}/90-%{name}.preset << EOF
|
cat > %{buildroot}%{_presetdir}/90-%{name}.preset << EOF
|
||||||
|
@ -221,6 +224,7 @@ EOF
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc LICENSE AUTHORS
|
%doc LICENSE AUTHORS
|
||||||
|
%dir %{_sysconfdir}/systemd/system/calamares.target.wants
|
||||||
%dir %{_libdir}/calamares
|
%dir %{_libdir}/calamares
|
||||||
%dir %{_datadir}/calamares
|
%dir %{_datadir}/calamares
|
||||||
%dir %{_datadir}/calamares/branding
|
%dir %{_datadir}/calamares/branding
|
||||||
|
@ -233,7 +237,9 @@ EOF
|
||||||
%dir %{_datadir}/calamares/qml/calamares
|
%dir %{_datadir}/calamares/qml/calamares
|
||||||
%dir %{_datadir}/calamares/qml/calamares/slideshow
|
%dir %{_datadir}/calamares/qml/calamares/slideshow
|
||||||
%{_presetdir}/90-%{name}.preset
|
%{_presetdir}/90-%{name}.preset
|
||||||
|
%{_sysconfdir}/systemd/system/calamares.target.wants/%{name}.service
|
||||||
%{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
|
%{_unitdir}/%{name}.target
|
||||||
%{_sbindir}/%{name}-install-start
|
%{_sbindir}/%{name}-install-start
|
||||||
%{_sbindir}/%{name}-install-setup
|
%{_sbindir}/%{name}-install-setup
|
||||||
%{_bindir}/calamares
|
%{_bindir}/calamares
|
||||||
|
|
8
calamares.target
Normal file
8
calamares.target
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Calamares installer
|
||||||
|
Requires=multi-user.target
|
||||||
|
After=multi-user.target
|
||||||
|
AllowIsolate=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
Alias=default.target
|
Loading…
Add table
Reference in a new issue