From: Valentin Vidic Date: Mon, 28 Oct 2013 08:04:16 +0000 (+0100) Subject: Rename kernel-2.6-cn to kernel-cn. X-Git-Tag: debian/7.0.2~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=3aa0c2486c49100544ae0904c5e6119a58e3f89e;p=carnet-upgrade.git Rename kernel-2.6-cn to kernel-cn. --- diff --git a/doc/carnet-upgrade-src.sgml b/doc/carnet-upgrade-src.sgml index 4f7aaaa..4139a57 100644 --- a/doc/carnet-upgrade-src.sgml +++ b/doc/carnet-upgrade-src.sgml @@ -556,7 +556,7 @@ CN: run_actions (main) started...

Ukoliko imate malu / particiju moguće je da instalacija - kernel paketa neće uspjeti. Paket kernel-2.6-cn + kernel paketa neće uspjeti. Paket kernel-cn zauzima oko 100 MB. Stare inačice kernela se ne brišu iz /boot direktorija što nakon nekoliko iteracija može dovesti do zapunjenja particije. Rješenje je brisanje starih diff --git a/src/actions/main.queue b/src/actions/main.queue index 72319c2..21b2e58 100644 --- a/src/actions/main.queue +++ b/src/actions/main.queue @@ -48,7 +48,7 @@ true remove_orphaned # ocisti stare libove nakon sto su cn paketi nadogradje 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 diff --git a/src/actions/post_upgrade.queue b/src/actions/post_upgrade.queue index 0bda10b..1a0ed5e 100644 --- a/src/actions/post_upgrade.queue +++ b/src/actions/post_upgrade.queue @@ -8,7 +8,7 @@ true debconf_priority reset 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 diff --git a/src/data.sh b/src/data.sh index 6c703c9..a767f56 100644 --- a/src/data.sh +++ b/src/data.sh @@ -55,7 +55,7 @@ clamav-cn clamav-daemon 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 diff --git a/src/functions.sh b/src/functions.sh index 2fbcacd..ce1aef8 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -1043,12 +1043,12 @@ check_archives_space() { 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: \ @@ -1080,10 +1080,10 @@ check_kernel_space() { 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