slimmer webkiosk with Russian layout
Thanks someone for review and feedback: http://www.opennet.ru/openforum/vsluhforumID3/83728.html#136 Better cleanup and i18n controls are due but in the meantime, let's at least build something actually useful.
This commit is contained in:
parent
0c41e39ec0
commit
b6e640bd8d
@ -34,8 +34,10 @@ distro/live-rescue: distro/live-icewm
|
||||
@$(call add,LIVE_LISTS, \
|
||||
$(call tags,(base || extra) && (archive || rescue || network)))
|
||||
|
||||
distro/live-webkiosk: distro/.live-desktop use/live/autologin use/live/hooks
|
||||
distro/live-webkiosk: distro/.live-desktop use/live/autologin \
|
||||
use/live/hooks use/live/ru use/cleanup
|
||||
@$(call add,LIVE_PACKAGES,livecd-webkiosk)
|
||||
@$(call add,LIVE_PACKAGES,fonts-ttf-dejavu fonts-ttf-droid)
|
||||
@$(call add,CLEANUP_PACKAGES,'installer*' 'alterator*' 'libqt4*')
|
||||
|
||||
endif
|
||||
|
11
features.in/cleanup/live/image-scripts.d/80locales
Executable file
11
features.in/cleanup/live/image-scripts.d/80locales
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# FIXME: there should be less brutal i18n tuning
|
||||
|
||||
cd /usr/share/locale
|
||||
for i in */; do
|
||||
case "$i" in
|
||||
be*|en*|ru*|uk*) continue;;
|
||||
esac
|
||||
rm -r "$i"
|
||||
done
|
||||
:
|
6
features.in/cleanup/live/image-scripts.d/90cleanup-pkgs
Executable file
6
features.in/cleanup/live/image-scripts.d/90cleanup-pkgs
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh -efu
|
||||
# remove extra packages from a bare livecd
|
||||
|
||||
list="$(rpmquery -a --qf='%{NAME}\n' $GLOBAL_CLEANUP_PACKAGES)"
|
||||
[ -z "$list" ] || apt-get remove -f -y -- $list
|
||||
:
|
3
features.in/cleanup/live/image-scripts.d/99cleanupdb
Executable file
3
features.in/cleanup/live/image-scripts.d/99cleanupdb
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# remove rpm, apt databases and cache
|
||||
find /var/lib/rpm /var/lib/apt /var/cache/apt -type f -delete
|
@ -1,6 +1,3 @@
|
||||
# remove rpm database
|
||||
rm -rf /var/lib/rpm/*
|
||||
|
||||
# remove apt data files
|
||||
rm -rf /var/cache/apt /var/lib*/apt
|
||||
|
||||
#!/bin/sh
|
||||
# remove rpm, apt databases and cache
|
||||
find /var/lib/rpm /var/lib/apt /var/cache/apt -type f -delete
|
||||
|
@ -20,3 +20,6 @@ use/live/autologin: use/live/desktop
|
||||
|
||||
use/live/hooks: use/live
|
||||
@$(call add,LIVE_PACKAGES,livecd-run-hooks)
|
||||
|
||||
use/live/ru: use/live
|
||||
@$(call add,LIVE_PACKAGES,livecd-ru)
|
||||
|
Loading…
Reference in New Issue
Block a user