new snapshot, create new installer.target and use systemd.unit=installer.target for install boot option

This commit is contained in:
tpg (Tomasz Paweł Gajc) 2015-04-18 14:11:08 +02:00
parent 42c52254ea
commit c38a447f91
6 changed files with 60 additions and 47 deletions

View file

@ -1,5 +1,5 @@
sources:
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
openmandriva-install.svg: 42dfb6f517456e18695a147141643de7a9747ec3

View file

@ -1,7 +1,7 @@
#!/bin/sh
# 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
# ensure plymouth really has stopped

View file

@ -1,7 +1,7 @@
#!/bin/sh
# 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
/usr/bin/startx /usr/sbin/calamares-install-setup $* -- -dpi 96 vt1 -background none
else

View file

@ -4,11 +4,10 @@ DefaultDependencies=no
After=livesys-late.service systemd-user-sessions.service getty@tty1.service plymouth-quit.service
Conflicts=getty@tty1.service
Conflicts=getty@%i.service
Conflicts=display-manager.service
Before=display-manager.service
Before=getty.target
Wants=NetworkManager.service
ConditionKernelCommandLine=|install
ConditionKernelCommandLine=|systemd.unit=installer.target
[Service]
Type=idle
@ -26,4 +25,4 @@ KillMode=process
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
WantedBy=calamares.target

View file

@ -1,4 +1,4 @@
%define calamdate 20150415
%define calamdate 20150418
%define partdate 20150112
%define major 1
@ -18,25 +18,26 @@ Source0: calamares-%{version}-%{calamdate}.tar.xz
Source1: calamares-partitionmanager-%{partdate}.tar.xz
Source2: calamares.rpmlintrc
Source3: %{name}.service
Source4: %{name}-install-start
Source5: %{name}-install-setup
Source6: omv-bootloader.conf
Source7: omv-displaymanager.conf
Source8: omv-finished.conf
Source9: omv-fstab.conf
Source10: omv-grubcfg.conf
Source11: omv-keyboard.conf
Source12: omv-locale.conf
Source13: omv-machineid.conf
Source14: omv-mount.conf
Source15: omv-packages.conf
Source16: omv-prepare.conf
Source17: omv-services.conf
Source18: omv-settings.conf
Source19: omv-unpackfs.conf
Source20: omv-users.conf
Source21: omv-partition.conf
Source22: omv-removeuser.conf
Source4: %{name}.target
Source5: %{name}-install-start
Source6: %{name}-install-setup
Source7: omv-bootloader.conf
Source8: omv-displaymanager.conf
Source9: omv-finished.conf
Source10: omv-fstab.conf
Source11: omv-grubcfg.conf
Source12: omv-keyboard.conf
Source13: omv-locale.conf
Source14: omv-machineid.conf
Source15: omv-mount.conf
Source16: omv-packages.conf
Source17: omv-prepare.conf
Source18: omv-services.conf
Source19: omv-settings.conf
Source20: omv-unpackfs.conf
Source21: omv-users.conf
Source22: omv-partition.conf
Source23: omv-removeuser.conf
Source99: openmandriva-install.svg
Source100: OpenMandriva-adverts.tar.xz
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
# (tpg) settings specific for OMV
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/calamares/modules/bootloader.conf
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/calamares/modules/displaymanager.conf
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/calamares/modules/finished.conf
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/calamares/modules/fstab.conf
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/calamares/modules/grubcfg.conf
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/calamares/modules/keyboard.conf
install -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/calamares/modules/locale.conf
install -m 644 %{SOURCE13} %{buildroot}%{_sysconfdir}/calamares/modules/machineid.conf
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/calamares/modules/mount.conf
install -m 644 %{SOURCE15} %{buildroot}%{_sysconfdir}/calamares/modules/packages.conf
install -m 644 %{SOURCE16} %{buildroot}%{_sysconfdir}/calamares/modules/prepare.conf
install -m 644 %{SOURCE17} %{buildroot}%{_sysconfdir}/calamares/modules/services.conf
install -m 644 %{SOURCE18} %{buildroot}%{_sysconfdir}/calamares/settings.conf
install -m 644 %{SOURCE19} %{buildroot}%{_sysconfdir}/calamares/modules/unpackfs.conf
install -m 644 %{SOURCE20} %{buildroot}%{_sysconfdir}/calamares/modules/users.conf
install -m 644 %{SOURCE21} %{buildroot}%{_sysconfdir}/calamares/modules/partition.conf
install -m 644 %{SOURCE22} %{buildroot}%{_sysconfdir}/calamares/modules/removeuser.conf
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/calamares/modules/bootloader.conf
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/calamares/modules/displaymanager.conf
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/calamares/modules/finished.conf
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/calamares/modules/fstab.conf
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/calamares/modules/grubcfg.conf
install -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/calamares/modules/keyboard.conf
install -m 644 %{SOURCE13} %{buildroot}%{_sysconfdir}/calamares/modules/locale.conf
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/calamares/modules/machineid.conf
install -m 644 %{SOURCE15} %{buildroot}%{_sysconfdir}/calamares/modules/mount.conf
install -m 644 %{SOURCE16} %{buildroot}%{_sysconfdir}/calamares/modules/packages.conf
install -m 644 %{SOURCE17} %{buildroot}%{_sysconfdir}/calamares/modules/prepare.conf
install -m 644 %{SOURCE18} %{buildroot}%{_sysconfdir}/calamares/modules/services.conf
install -m 644 %{SOURCE19} %{buildroot}%{_sysconfdir}/calamares/settings.conf
install -m 644 %{SOURCE20} %{buildroot}%{_sysconfdir}/calamares/modules/unpackfs.conf
install -m 644 %{SOURCE21} %{buildroot}%{_sysconfdir}/calamares/modules/users.conf
install -m 644 %{SOURCE22} %{buildroot}%{_sysconfdir}/calamares/modules/partition.conf
install -m 644 %{SOURCE23} %{buildroot}%{_sysconfdir}/calamares/modules/removeuser.conf
# (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 755 %{SOURCE4} %{buildroot}%{_sbindir}/%{name}-install-start
install -m 744 %{SOURCE5} %{buildroot}%{_sbindir}/%{name}-install-setup
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.target
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}
cat > %{buildroot}%{_presetdir}/90-%{name}.preset << EOF
@ -221,6 +224,7 @@ EOF
%files
%doc LICENSE AUTHORS
%dir %{_sysconfdir}/systemd/system/calamares.target.wants
%dir %{_libdir}/calamares
%dir %{_datadir}/calamares
%dir %{_datadir}/calamares/branding
@ -233,7 +237,9 @@ EOF
%dir %{_datadir}/calamares/qml/calamares
%dir %{_datadir}/calamares/qml/calamares/slideshow
%{_presetdir}/90-%{name}.preset
%{_sysconfdir}/systemd/system/calamares.target.wants/%{name}.service
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.target
%{_sbindir}/%{name}-install-start
%{_sbindir}/%{name}-install-setup
%{_bindir}/calamares

8
calamares.target Normal file
View file

@ -0,0 +1,8 @@
[Unit]
Description=Calamares installer
Requires=multi-user.target
After=multi-user.target
AllowIsolate=yes
[Install]
Alias=default.target