<p>
Ukoliko imate malu <file>/</file> particiju moguće je da instalacija
- kernel paketa neće uspjeti. Paket <package>kernel-2.6-cn</package>
+ kernel paketa neće uspjeti. Paket <package>kernel-cn</package>
zauzima oko 100 MB. Stare inačice kernela se ne brišu iz
<file>/boot</file> direktorija što nakon nekoliko iteracija može
dovesti do zapunjenja particije. Rješenje je brisanje starih
true add_group_proc # za oidentd
true enable_monit
true clean_old_kernels
-pkg kernel-2.6-cn dpkg-reconfigure kernel-2.6-cn
+pkg kernel-cn dpkg-reconfigure kernel-cn
true clean_initd_packages
true dpkg-reconfigure sysv-rc
# ovo bi trebalo biti predzadnje na popisu
true add_group_proc # + restart oidentd ako treba
pkg xserver-xorg remove_x
true install_new
-pkg kernel-2.6-cn dpkg-reconfigure kernel-2.6-cn
+pkg kernel-cn dpkg-reconfigure kernel-cn
# ovo bi trebalo biti predzadnje na popisu
# - izvrsi sve uvjetne post_upgrade akcije
true run_post_upgrade
dovecot-cn
freeradius-aai freeradius
isc-dhcp-client
-kernel-2.6-cn
+kernel-2.6-cn kernel-cn
monit-cn
munin-cn
mysql-cn mysql-client mysql-server
fi
}
-# calculate the list of linux-image packages from kernel-2.6-cn dependencies
+# calculate the list of linux-image packages from kernel-cn dependencies
get_cn_kernels() {
local cn_kernels linux_images metapkg pkg
cn_kernels=
- linux_images=$(apt-cache show kernel-2.6-cn | grep ^Depends: \
+ linux_images=$(apt-cache show kernel-cn | grep ^Depends: \
| grep -o 'linux-image[^, ]*')
for metapkg in $linux_images; do
pkg=$(apt-cache show $metapkg | grep ^Depends: \
log "Kernel package: $pkg"
log "Kernel size: ${kernel_size}MB"
- if LC_ALL=C apt-get -s install kernel-2.6-cn 2>/dev/null \
- | grep -q '^kernel-2.6-cn is already the newest version.$'
+ if LC_ALL=C apt-get -s install kernel-cn 2>/dev/null \
+ | grep -q '^kernel-cn is already the newest version.$'
then
- log "Not checking free space in /: kernel-2.6-cn already installed"
+ log "Not checking free space in /: kernel-cn already installed"
return
fi