Hi,
I meat a strange behaviour (but may be it's a normal working?) when creating a SliTaz distro (Rolling 32) from a chroot. I
- install glibc-base, gettext-base, slitaz-base-files, busybox, tazpkg and ncurses-common on the target partition
- mount the environment:
# mount -t proc proc /media/lxlauncher/proc
# mount -t sysfs sysfs /media/lxlauncher/sys
# mount -t devpts devpts /media/lxlauncher/dev/pts
# mount -t tmpfs shm /media/lxlauncher/dev/shm
# cp /etc/resolv.conf /media/lxlauncher/etc/resolv.conf - change root:
# chroot /media/target
- and when I recharge the tazpkg list:
/# tazpkg recharge
/usr/bin/tazpkg: line 32: can't create /dev/null: Permission denied
/usr/bin/tazpkg: line 32: can't create /dev/null: Permission denied
awk: /var/lib/tazpkg/installed.info: No such file or directory
/usr/bin/tazpkg: line 50: can't create /dev/null: Permission denied
Creating folder "/var/cache/tazpkg"...
/usr/bin/tazpkg: line 50: can't create /dev/null: Permission denied
[ Done ]
/usr/bin/tazpkg: line 50: can't create /dev/null: Permission denied
Creating folder "/var/lib/tazpkg/installed"...
/usr/bin/tazpkg: line 50: can't create /dev/null: Permission denied
[ Done ]Recharging repository "Main"
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
================================================================================
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
Checking...
/usr/libexec/tazpkg/recharge: line 14: can't create /dev/null: Permission denied
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
[ Failed ]
/usr/libexec/tazpkg/recharge: line 67: can't create /dev/null: Permission denied
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
Creating backup of the last packages list...
/usr/libexec/tazpkg/recharge: line 71: can't create /dev/null: Permission denied
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
[ Done ]
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
Getting "bundle.tar.lzma"...
/usr/libexec/tazpkg/recharge: line 14: can't create /dev/null: Permission denied
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
[ Failed ]
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
Restoring database files...
ls: /var/lib/tazpkg/*.bak: No such file or directory
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
[ Done ]
/usr/libexec/tazpkg/recharge: line 50: can't create /dev/null: Permission denied
================================================================================
Recharging failed
Have a look at /dev/null:
/# ls -l /dev/null crw-r--r-- 1 root root 1, 3 Jan 14 2019 /dev/null
Deleting /dev/null the tazpkg recharge
command works correctly; a new /dev/null (plain text file) has been created.
I can now install a packages list:
/# tazpkg get-install-list console32.list
without any problem... untill TazPkg try to install slitaz-base-files:
Installation of package "slitaz-base-files" ================================================================================ Linux tree and the necessary files for the base system. -------------------------------------------------------------------------------- Copying package... [ Done ] Extracting package... [ Done ] Remember modified packages... [ Done ] Execute pre-install commands... [ Done ] Saving configuration files... [ Done ] Installing package... /usr/libexec/tazpkg/install: line 50: can't create /dev/null: Permission denied [ Done ] /usr/libexec/tazpkg/install: line 50: can't create /dev/null: Permission denied Removing all tmp files... /usr/libexec/tazpkg/install: line 50: can't create /dev/null: Permission denied [ Done ] /usr/libexec/tazpkg/install: line 50: can't create /dev/null: Permission denied Execute post-install commands... /usr/libexec/tazpkg/install: line 50: can't create /dev/null: Permission denied [ Done ] /usr/libexec/tazpkg/install: line 50: can't create /dev/null: Permission denied Update system databases... /usr/libexec/tazpkg/install: line 360: can't create /dev/null: Permission denied /usr/libexec/tazpkg/install: line 50: can't create /dev/null: Permission denied [ Done ] /usr/libexec/tazpkg/install: line 50: can't create /dev/null: Permission denied ================================================================================ Package "slitaz-base-files" (339) is installed.
Then it is not possible to install any packages.
/# ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Jan 14 2019 /dev/null
The icon of the file is now a little screen (used for devices, I assume).
Deleting /dev/null again solves the problem once more.
This happens each time I want to install slitaz-base-files from the chroot. Installing it from the distro normaly booted goes well.
I use this method to install Next64 and didn't meet this problem (but many others ;-) )
Bug in the slitaz-base-files package in Rolling 32?