Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
dd9948d4
Commit
dd9948d4
authored
Feb 05, 2025
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live: add package livecd-rescue instead run 60-live-rescue-root
parent
e8b55b5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
59 deletions
+1
-59
config.mk
features.in/live/config.mk
+1
-1
60-live-rescue-root
features.in/live/live/image-scripts.d/60-live-rescue-root
+0
-58
No files found.
features.in/live/config.mk
View file @
dd9948d4
...
@@ -102,7 +102,7 @@ endif
...
@@ -102,7 +102,7 @@ endif
# live as Rescue
# live as Rescue
use/live/rescue: use/live use/grub/live-rescue.cfg use/syslinux/live-rescue.cfg
use/live/rescue: use/live use/grub/live-rescue.cfg use/syslinux/live-rescue.cfg
@$(call set,STAGE2_LIVE_RESCUE,yes)
@$(call set,STAGE2_LIVE_RESCUE,yes)
@$(call add,LIVE_PACKAGES,livecd-rescue
-utility
)
@$(call add,LIVE_PACKAGES,livecd-rescue)
@$(call add,LIVE_LISTS,tagged/base+rescue)
@$(call add,LIVE_LISTS,tagged/base+rescue)
ifeq (,$(filter-out x86_64,$(ARCH)))
ifeq (,$(filter-out x86_64,$(ARCH)))
@$(call add,LIVE_PACKAGES,pesign mokutil)
@$(call add,LIVE_PACKAGES,pesign mokutil)
...
...
features.in/live/live/image-scripts.d/60-live-rescue-root
deleted
100755 → 0
View file @
e8b55b5d
#!/bin/sh -efu
# don't cripple the image to be copied over
[
-n
"
${
GLOBAL_LIVE_INSTALL
-
}
"
]
||
\
[
-x
/usr/sbin/live-install
]
||
\
[
-x
/usr/sbin/livecd-install
]
&&
exit
0
which rescue-shell-show
>
/dev/null 2>&1
||
exit
0
# for systemd only
ls
-l
/sbin/init |grep
-q
systemd
||
exit
0
# disable issue "Hello friend, say '$LIVECD_LOGIN' to log in at"
[
!
-f
/etc/sysconfig/livecd-user.conf
]
||
echo
'LIVECD_NO_ISSUE=1'
>>
/etc/sysconfig/livecd-user.conf
# Autologin root to tty's
mkdir
-p
/etc/systemd/system/getty@.service.d
cat
>>
/etc/systemd/system/getty@.service.d/live-rescue.conf
<<
'
EOF
'
[Service]
ExecStart=
ExecStart=-agetty -o '-p -f -- \\u' --noclear --autologin root %I
$TERM
EOF
# Autologin root to serial tty's
mkdir
-p
/etc/systemd/system/serial-getty@.service.d
cat
>>
/etc/systemd/system/serial-getty@.service.d/live-rescue.conf
<<
'
EOF
'
[Service]
ExecStart=
ExecStart=-agetty -o '-p -f -- \\u' --keep-baud 115200,57600,38400,9600 --autologin root %I
$TERM
EOF
mkdir
-p
/etc/systemd/system/live-rescue.target.d
cat
>>
/etc/systemd/system/live-rescue.target
<<
'
EOF
'
[Unit]
Description=Live Rescue System
Documentation=man:systemd.special(7)
Requires=basic.target network-online.target getty.target
Conflicts=rescue.service rescue.target multi-user.target
Conflicts=altlinux-first_time.service vconsole-setup-kludge@tty1.service
Before=altlinux-first_time.service vconsole-setup-kludge@.service
After=basic.target rescue.service rescue.target multi-user.target
After=getty.target
AllowIsolate=yes
EOF
cat
>>
/root/.bash_profile
<<
'
EOF
'
if grep -qs 'systemd.unit=live-rescue.target' /proc/cmdline; then
if grep -wqs autorun /proc/cmdline; then
if which rescue-launcher >/dev/null 2>&1; then
if [ "
$(
tty
2>/dev/null
)
" = "/dev/tty1" ]; then
rescue-launcher "
$@
"
fi
fi
fi
which rescue-shell-show >/dev/null 2>&1 && rescue-shell-show
fi
EOF
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment