Skip to content

Commit

Permalink
New script for generation of install.img
Browse files Browse the repository at this point in the history
  • Loading branch information
ydirson committed Apr 19, 2023
1 parent edcd0b2 commit dd198fc
Show file tree
Hide file tree
Showing 20 changed files with 1,770 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/install-*.img
/tests/test-results/
/tests/trash directory.*

# temporary files during image generation
/rootfs-*
/yum-*.conf
1 change: 1 addition & 0 deletions installimg/8.2.testing
41 changes: 41 additions & 0 deletions installimg/8.2.updates/etc/systemd/system/getty@tty2.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This file is based on the service file from systemd.

[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service

# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
IgnoreOnIsolate=yes

# On systems without virtual consoles, don't start any getty. Note
# that serial gettys are covered by serial-getty@.service, not this
# unit.
ConditionPathExists=/dev/tty0

[Service]
# the VT is cleared by TTYVTDisallocate
ExecStart=-/sbin/agetty --autologin root --noclear %I
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes

# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=

[Install]
WantedBy=getty.target
12 changes: 12 additions & 0 deletions installimg/8.2.updates/etc/systemd/system/installer.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=XCP-ng Installer
Requires=systemd-udev-settle.service interface-rename-sideway.service early-blacklist.service
After=systemd-udev-settle.service interface-rename-sideway.service early-blacklist.service getty@tty2.service

[Service]
Type=forking
SendSIGHUP=yes
ExecStart=/opt/xensource/installer/preinit --

[Install]
WantedBy=multi-user.target
41 changes: 41 additions & 0 deletions installimg/8.3.0/etc/systemd/system/installer-getty@.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This file is based on the service file from systemd.

[Unit]
Description=Installer Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service

# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
IgnoreOnIsolate=yes

# On systems without virtual consoles, don't start any getty. Note
# that serial gettys are covered by serial-getty@.service, not this
# unit.
ConditionPathExists=/dev/tty0

[Service]
# the VT is cleared by TTYVTDisallocate
ExecStart=-/sbin/agetty --autologin root --noclear %I
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes

# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=

[Install]
WantedBy=getty.target
12 changes: 12 additions & 0 deletions installimg/8.3.0/etc/systemd/system/installer.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=XCP-ng Installer
Requires=systemd-udev-settle.service interface-rename-sideway.service early-blacklist.service
After=systemd-udev-settle.service interface-rename-sideway.service early-blacklist.service getty@tty2.service

[Service]
Type=forking
SendSIGHUP=yes
ExecStart=/opt/xensource/installer/preinit --

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions installimg/8.3.testing
1 change: 1 addition & 0 deletions installimg/8.3.updates
Loading

0 comments on commit dd198fc

Please sign in to comment.