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
c4094423
Commit
c4094423
authored
Mar 27, 2025
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live-install: remove kernel also when install from squash
Request by Mikhail Efremov sem@.
parent
9e80c254
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
README
features.in/live-install/README
+5
-0
config.mk
features.in/live-install/config.mk
+2
-0
02-cleanup-main-repo
features.in/live-install/scripts.d/02-cleanup-main-repo
+5
-1
No files found.
features.in/live-install/README
View file @
c4094423
...
@@ -25,3 +25,8 @@
...
@@ -25,3 +25,8 @@
размера iso-образа.
размера iso-образа.
Второй вариант не отличается от altinst.
Второй вариант не отличается от altinst.
По дефолту пакеты kernel-image и kernel-modules в режиме распаковки образа live
удаляются. Чтобы это предотвратить задайте переменную MAIN_KERNEL_SAVE:
@$(call set,MAIN_KERNEL_SAVE,yes)
features.in/live-install/config.mk
View file @
c4094423
...
@@ -8,6 +8,8 @@ use/live-install: use/live use/metadata use/repo/main use/l10n \
...
@@ -8,6 +8,8 @@ use/live-install: use/live use/metadata use/repo/main use/l10n \
use/alternatives/xvt/xterm
use/alternatives/xvt/xterm
@$(call add_feature)
@$(call add_feature)
@$(call set,STAGE2_LIVE_INST,yes)
@$(call set,STAGE2_LIVE_INST,yes)
@$(call try,MAIN_KERNEL_SAVE,no)
@$(call xport,MAIN_KERNEL_SAVE)
@$(call add,LIVE_PACKAGES,installer-common-stage2)
@$(call add,LIVE_PACKAGES,installer-common-stage2)
@$(call add,THE_PACKAGES,alterator-wizardface)
@$(call add,THE_PACKAGES,alterator-wizardface)
@$(call add,THE_LISTS,$(call tags,basesystem && !alterator))
@$(call add,THE_LISTS,$(call tags,basesystem && !alterator))
...
...
features.in/live-install/scripts.d/02-cleanup-main-repo
View file @
c4094423
...
@@ -7,4 +7,8 @@ RPM_LIVE_LIST="$WORKDIR/.disk/pkglists/live/image/rpm.txt"
...
@@ -7,4 +7,8 @@ RPM_LIVE_LIST="$WORKDIR/.disk/pkglists/live/image/rpm.txt"
[
-f
"
$RPM_LIVE_LIST
"
]
||
exit
1
[
-f
"
$RPM_LIVE_LIST
"
]
||
exit
1
cd
"
$WORKDIR
/
$PREFIX
/RPMS.main"
cd
"
$WORKDIR
/
$PREFIX
/RPMS.main"
cat
"
$RPM_LIVE_LIST
"
|
grep
-v
kernel-image |
grep
-v
kernel-modules | xargs
rm
-fv
if
[
"
$GLOBAL_MAIN_KERNEL_SAVE
"
=
yes
]
;
then
cat
"
$RPM_LIVE_LIST
"
|
grep
-v
kernel-image |
grep
-v
kernel-modules | xargs
rm
-fv
else
cat
"
$RPM_LIVE_LIST
"
| xargs
rm
-fv
fi
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