SliTaz SliTaz Forum

You are not logged in.

#1 2013-05-25 18:07:26

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Upgrade from 4.0 to Cooking

I test upgrade from 4.0 (up to date) to cooking in VM.

I found two bugs:

1/ When type tazpkg, a link appear

[attachment=25817,1143]

2/ Desktop bug.

[attachment=25817,1146]

For second bug, i resolv partially with old post (http://forum.slitaz.org/topic/desktop-icons-and-font-problems)

i execute in root pango-querymodules > '/etc/pango/pango.modules'

The font is now normal, but icons not appear.

[attachment=25817,1145]

Offline

#2 2013-05-25 18:35:24

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: Upgrade from 4.0 to Cooking

I try to change icon theme (use humanity icon theme) with lxappearance, not change, but when i try to use SliTaz icon set, i have error in Terminal.

[attachment=25819,1147]

Offline

#3 2013-05-25 18:37:27

subreptice
Member
Registered: 2013-03-10
Posts: 54

Re: Upgrade from 4.0 to Cooking

Hello shann

I was told here

http://forum.slitaz.org/topic/trying-to-tazpkg-set-release-cooking

they are too many differencies to do succesfully a tazpkg set-release cooking.

Offline

#4 2013-05-25 18:47:46

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: Upgrade from 4.0 to Cooking

Ok, I don't see your post.

My goals is to use slitaz gtkonly for create my own desktop, but for now cooking doesn't have this flavor.

Then, i use set-release for upgrade to cooking.

Offline

#5 2013-05-25 18:49:51

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: Upgrade from 4.0 to Cooking

if the upgrade from 4.0 to 5.0 pre-release is impossible.

I can't imaginate the work that will have to make to successfully upgrade from 4.0 to 5.0 final smile

Offline

#6 2013-05-25 19:10:12

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Upgrade from 4.0 to Cooking

1/ When type tazpkg, a link appear

[attachment=25817,1143]

Main SliTaz's configuration file: /etc/slitaz/slitaz.conf

It exists in the package slitaz-base-files (see receipt)

File /etc/slitaz/slitaz.conf exists in the CONFIG_FILES variable in this receipt. What it mean?

Configuration files not upgraded when you upgrade your packages. Huh...

You get new slitaz-base-files and old config file for near all system.

If package upgrade not change these configs, then what a way to change them? I think, only manually.

Where to get latest  /etc/slitaz/slitaz.conf? In the Hg repo: http://hg.slitaz.org/slitaz-base-files/raw-file/tip/rootfs/etc/slitaz/slitaz.conf

Log in as root (or open PCManFM as root), navigate to /etc/slitaz directory, and open file slitaz.conf in your text editor.

Remove all file content, copy content from Hg repo and paste to text editor, save and exit.

I think, its all with this bug/feature.

Offline

#7 2013-05-25 20:50:36

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: Upgrade from 4.0 to Cooking

hi Aleksej,

Infact, /etc/slitaz/slitaz.conf doesn't upgrade, i try your solution, work.

1/ Tazpkg bug => Fixed.

2/ In the case of desktop, I think is a same problem, severals config files doesn't upgrade for icon set.

Offline

#8 2013-05-25 21:13:42

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Upgrade from 4.0 to Cooking

When a tazpkg receipt has the CONFIG_FILES=

[c]tazpkg repack-config[/c] includes those files with the users custom configurations in config-1.0.tazpkg

[c]tazpkg list-config[/c] shows every CONFIG_FILE on your system.

This creates a tazpkg with your custom configs for reloading/auto-installing on boot if placed in

/home/boot/packages folder of frugal install.

This is a way of creating a persistant system without repacking rootfs.gz

When /etc/init.d/bootopts.sh installs config-1.0.tazpkg it's config files overwrite the defaults.

Reference: http://doc.slitaz.org/en:cookbook:receipt => $CONFIG_FILES

Offline

#9 2013-05-25 21:25:14

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: Upgrade from 4.0 to Cooking

This is list sort by tazpkg list-config

I reduce no significant folder

================================================================

[/boot/isolinux/] somes files

/etc/adduser.conf

/etc/daemons.conf

/etc/dnsd.conf

[/etc/dropbear/] somes files

/etc/filesystems

/etc/fstab

/etc/group

/etc/gshadow

/etc/gtk-2.0/gtk.immodules [! important ? ]

/etc/host.conf

/etc/hostname

/etc/hosts

/etc/httpd.conf

/etc/inetd.conf

/etc/init.d/local.sh

/etc/inittab

/etc/issue

/etc/keymap.conf

/etc/locale.conf

/etc/lxpanel/default/config [! important ? ]

/etc/lxpanel/default/panels/panel [! important ? ]

/etc/network.conf

/etc/networks

/etc/nsswitch.conf

/etc/pango/pango.modules [ ! important, need use pango-querymodules for upgrade manually ]

/etc/passwd

[/etc/ppp/] somes files

/etc/profile

/etc/rcS.conf

/etc/resolv.conf

/etc/securetty

/etc/services

/etc/shadow

/etc/shells

/etc/slim.conf

/etc/slitaz/applications.conf

/etc/slitaz/slitaz.conf

/etc/tazlito/distro-packages.list

/etc/TZ

/etc/udhcpd.conf

/etc/wpa_supplicant.conf

================================================================

Offline

#10 2013-05-25 22:07:12

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Upgrade from 4.0 to Cooking

CONFIG_FILES has nothing to do with preventing a package,file,or folder from being overwritten during an upgrade.

It's a feature of tazpkg which allows the user to pack the listed files into a tazpkg for re-installation.

Did you use tazinst to do the upgrade?

Offline

#11 2013-05-25 22:16:43

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Upgrade from 4.0 to Cooking

mojo,

http://doc.slitaz.org/en:cookbook:receipt#variables-optional

$CONFIG_FILES : Some packages provide customized configuration files. The $CONFIG_FILES variable provides a list of these files that can be saved by the 'tazpkg repack-config' command. These files are not overwritten when reinstalling the package if they already exist and the package can be successfully recreated with 'tazpkg repack', (even if they have been modified since).

Offline

#12 2013-05-25 22:32:19

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Upgrade from 4.0 to Cooking

Aleksej,

I stand corrected smile

It makes sense you wouldn't want a package update that includes a configuration file to overwrite the users configuration with the default file.

shann,

/etc/slitaz/applications.conf => WINDOW_MANAGER="lxde-session"

Offline

#13 2013-05-25 23:33:18

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Upgrade from 4.0 to Cooking

mojo,

clue that sometimes we should overwrite old default config file with the new default config file. Like in this case with slitaz.conf.

I propose next behavior. If user not changed config -- then it md5sum is unchanged -- then tazpkg should overwrite this config. In other hand, if "power user" changed config once, he knows what to do with it to change it again.

Do you agree? Let's coding?

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]