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
Anton Palgunov
mkimage-profiles
Commits
50bfea9d
Commit
50bfea9d
authored
Apr 12, 2012
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: *support* livecd-install
livecd-install support wasn't added properly; fixed (thanks glebfm@ yet again). Something like fine-grained KEEP_* might be due...
parent
d0a8ea6b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
6 deletions
+30
-6
85cleanup-cjk
sub.in/stage2/image-scripts.d/85cleanup-cjk
+3
-0
85cleanup-legacy
sub.in/stage2/image-scripts.d/85cleanup-legacy
+3
-0
90cleanup-bloat-bin
sub.in/stage2/image-scripts.d/90cleanup-bloat-bin
+6
-1
90cleanup-drm
sub.in/stage2/image-scripts.d/90cleanup-drm
+6
-1
97cleanup-blacklisted
sub.in/stage2/image-scripts.d/97cleanup-blacklisted
+5
-0
99cleanup-boot
sub.in/stage2/image-scripts.d/99cleanup-boot
+7
-4
No files found.
sub.in/stage2/image-scripts.d/85cleanup-cjk
View file @
50bfea9d
#!/bin/sh
# don't cripple the image to be copied over
[
-x
/usr/sbin/live-install
-o
-x
/usr/sbin/livecd-install
]
&&
exit
0
# remove unused fonts
cd
/usr/share/fonts/bitmap/misc/
&&
rm
-f
*
ja.
*
*
ko.
*
han
*
gb
*
jis
*
k14
*
rk
*
*
rk.
*
*
kana
*
cl
*
*
JIS
*
...
...
sub.in/stage2/image-scripts.d/85cleanup-legacy
View file @
50bfea9d
#!/bin/sh
# don't cripple the image to be copied over
[
-x
/usr/sbin/live-install
-o
-x
/usr/sbin/livecd-install
]
&&
exit
0
# remove unused legacy/tiny fonts
#cd /usr/share/fonts/bitmap/misc/ && rm -f *ISO* *KOI* [1456]*
cd
/usr/share/fonts/bitmap/misc/
&&
rm
-f
[
1456]
*
...
...
sub.in/stage2/image-scripts.d/90cleanup-bloat-bin
View file @
50bfea9d
#!/bin/sh
# outstanding binaries
# don't cripple the image to be copied over
[
-x
/usr/sbin/live-install
-o
-x
/usr/sbin/livecd-install
]
&&
exit
0
# purge outstanding binaries
rm
-f
/sbin/
{
sash,sln,tc
}
rm
-f
/usr/bin/
{
openssl,ipv6log
*
}
rm
-f
/bin/ipv6calc
:
sub.in/stage2/image-scripts.d/90cleanup-drm
View file @
50bfea9d
#!/bin/sh
# no sense in xorg-dri-* without kernel-modules-drm*
# don't cripple the image to be copied over
[
-x
/usr/sbin/live-install
-o
-x
/usr/sbin/livecd-install
]
&&
exit
0
# no sense in xorg-dri-* without kernel-modules-drm*
stat
/lib/modules/
*
/kernel/drivers/gpu/drm
>
&/dev/null
\
||
rm
-rf
/usr/lib
*
/X11/modules/dri/
:
sub.in/stage2/image-scripts.d/97cleanup-blacklisted
View file @
50bfea9d
#!/bin/sh
# don't cripple the image to be copied over
[
-x
/usr/sbin/live-install
-o
-x
/usr/sbin/livecd-install
]
&&
exit
0
# blacklisted kernel modules
sed
-n
's/^blacklist[[:space:]]\+\([^[:space:]]\+\).*/\1/p'
/etc/modprobe.d/
*
|
while
read
i
;
do
find /lib/modules/
-type
f
-name
"
$i
.ko"
-delete
done
:
sub.in/stage2/image-scripts.d/99cleanup-boot
View file @
50bfea9d
#!/bin/sh
# no need for the kernel in live root
# (unless it's a live-install):
# it's been booted already
[
-x
/usr/sbin/live-install
]
||
[
-x
/usr/sbin/livecd-install
]
||
rm
-f
/boot/
*
# don't cripple the image to be copied over
[
-x
/usr/sbin/live-install
-o
-x
/usr/sbin/livecd-install
]
&&
exit
0
# no need for the kernel in live root otherwise: it's been booted already
rm
-f
/boot/
*
:
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