Hi @sofia-m
Try...
get and install tazdev:
# tazpkg -gi tazdev
generate chroot environment:
# tazdev gen-chroot
enter the chroot environment:
# tazdev chroot
exit environment chroot:
# exit
Hi @sofia-m
Try...
get and install tazdev:
# tazpkg -gi tazdev
generate chroot environment:
# tazdev gen-chroot
enter the chroot environment:
# tazdev chroot
exit environment chroot:
# exit
Hi @rerivero,
I installed Slitaz-basevm in a spare partition, not a folder, which I'm trying to access from Devuan, to test packages while I do homework.
I might install some package providing the chroot binary on Slitaz-basevm, I suppose.
Hi sofia-m,
Very strange, normally if you running x86_64 distribution you can chroot inside.
Also "chroot" command at inside coreutils package on Debian (also on Devuan)
@shann
I tried both from Devuan and from a HD install of Slitaz 64 rolling.
The command I used are:
#mount -rw /dev/sda11 /mnt/sda11
# mount -t proc proc /mnt/sda11/proc
# mount -t sysfs sys /mnt/sda11/sys
# mount -o bind /dev /mnt/sda11/dev
# mount -t devpts pts /mnt/sda11/dev/pts
# cp -L /etc/resolv.conf /mnt/sda11/etc/
# chroot /mnt/sda11
chroot: can't execute '/bin/bash': No such file or directory
I had the same problem with Alpine Linux, which uses busybox chroot too. I could chroot into Alpine Linux partition only after installing the chroot package there. But maybe I'm doing something wrong.
@sofia-m:
Maybe you should try:
chroot /mnt/sda11 /bin/sh --login
as SliTaz often does not have a bash installed by default but simply busybox' ash.
Invoking without parameters might look for the bash, although not installed ?!?
... slowly advancing on the trail...
In the last days, i took the original rootfs4.gz from a SliTaz 5.0 cooking LiveCD and replaced the installed packages by the x86_64 compiled packages (as published on my webspace:
https://c.web.de/@337942326598965997/QhaNFMiJQhuEqY3q66F8Xg ).
Since for some of the installed packages I did not yet achieve sane 64bit compilations (as for cdrkit for example) I just left them out for the first steps.
I achieved a bootable x86_64 Rootfs that I put on my webspace in the "Chroot-Systems" folder.
This is a packed cpio image as on the LiveCD.
You can extract them in order to chroot into them by typing (IMG being the name of the file) as root:
( zcat "$IMG" 2>/dev/null || gunzip d "$IMG" -so 2>/dev/null || cat "$IMG" ) | cpio -id
I also managed to boot into the rootfs images using (any) kernel + module-overlay with the following grub4dos entries:
title Slitaz from Scratch (SFS)
root (hd0,0)/SFS
kernel /bzImage
initrd /rootfs64.gz /ovl_modules.gz
For my frugal installations I always use a combination of the kernel and an overlay containing the kernel modules (which is simply the /lib/modules/[kernel] tree packed in a cpio as the other images).
You can produce such an overlay easily by building the tree and packing with:
'(find . -print | cpio -o -H newc ) | gzip -9 > /tmp/ovl_modules.gz`
The smaller 210227_rootfs.gz (7.3 MB) is my first try to take the step to the 64bit SliTaz image. The larger 210228_rootfs_wok.gz (62.2 MB) already contains most of the packages needed for a full wok.
While the first boots through mostly fine, the latter throws out a couple of errors. I guess, (e)udev doesn't start up at first, though after logging in as root and starting through again with
/etc/init.d/rcS start
the image comes up in a sounder state.
Still a lot to do, but at least there's some x86_64 images running already and a steadily increasing pool of x86_64 packages that the LFS wok spits out.
I hope, these are usable for further steps ahead by you, too.
I am not sure, though, if they run fine under shann's chroot, since they are based on different glibs....
Will report further...
@Filou
chroot /mnt/sda11 /bin/sh --login did the trick, thanks a lot!
I have downloaded your rootfs64 and booted it with a 64 kernel in frugal mode.
Will try the overlay later.
@Filou
I have extracted the 210227_rootfs.gz and copied it to a spare partition. Then, I chrooted into it and installed the linux-4.17.7-x86_64 kernel from the Next64 repo.
Then I booted into it with a standard grub2 entry, and it booted just fine.
I copied shann packages to the /root/packages, just to have them handy.
Are there any packages you would like me to download from your website and test?
@sofia-m
I really appreciate your willingness to support, thank you!
At the moment I am struggling with extending the working but very bare Slitaz-x86_64 package to a full blown wok.
I managed to install many necessary packages, but still get some errors, which is why I do not dare to post it as a testing basis. At the same time, the bare package is just too ... bare ... to really test many things.
You could choose one of two possible tasks, if you like:
1.) you could download the latest LFS-wok.tar.xz (about 290 MB at the moment) from my webspace and try to cook further packages with it. As I was in the mid of the libraries, you could descend from the last packages in the wok down and meet me somewhere in the middle.
You will experience many packages failing the cooking process, but a good amount cooking well.
By that, we can a) extend the respository of available packages and b) identify which receipts need further work.
Just enter the LFS-wok with the enclosed chroot shellscript; you'll find the wok in /home/slitaz/wok and can cook the packages by simply typing cook <pkg-name>
. If it cooks well, you'll find the packages in /home/slitaz/packages...
or
2.) you could build up your installed bare image by installing the available packages and try to figure out, which packages break the installed system so we can search for errors in a more directed way.
Ba aware that the /var/lib/tazpkg/mirror file might point to a slitaz mirror and dependencies might be installed from a 32bit repository, breaking your system.
All installations will better be done with
tazpkg -i <full-package-path/name> --nodeps
so that the dependencies are displayed but not collected from the repository.
A regular reboot should show, if anything has been broken.
Maybe this would be a step to take?!?
Thanks again!
@Filou,
I have already been toying with option 2) and was considering where to obtain a list of the packages that would constitute a minimal working distro.
For instance, this is the list of base-system packages from the rolling64 iso (without their eventual dependencies):
busybox 1.31.1 base-system
cookutils 887 base-system
dialog 1.3_20190211 base-system
e2fsprogs 1.45.5 base-system
gettext-base 0.19.8.1 base-system
glibc-base 2.14.1 base-system
kbd-base 2.2.0 base-system
libcomerr 1.45.5 base-system
linux 4.17.7 base-system
linux64 3.16.55 base-system
linux64-agp 3.16.55 base-system
linux64-crypto 3.16.55 base-system
linux64-drm 3.16.55 base-system
linux64-hfsplus 3.16.55 base-system
linux64-mmc 3.16.55 base-system
linux64-wireless 3.16.55 base-system
linux64-zram 3.16.55 base-system
lzlib 4.57 base-system
lzma 4.57 base-system
memtest 5.01 base-system
ncurses 6.2 base-system
ncurses-common 6.2 base-system
ncursesw 6.2 base-system
pcsc-lite 1.8.26 base-system
plop 5.0.15 base-system
slitaz-base-files 343 base-system
slitaz-boot-scripts 466 base-system
slitaz-configs 318 base-system
slitaz-configs-base 317 base-system
syslinux 4.06 base-system
tazinst 109 base-system
tazinst-gui 109 base-system
tazlito 529 base-system
tazpkg 944 base-system
tazusb 209 base-system
udev 182 base-system
util-linux-blkid 2.35.1 base-system
util-linux-eject 2.35.1 base-system
util-linux-getopt 2.35.1 base-system
util-linux-mount 2.35.1 base-system
util-linux-uuid 2.35.1 base-system
zlib 1.2.11 base-system
Some of them have a few dependencies which would, in turn have some more.
I don't know what you guys would consider an ideal base system.
I will play with the 5in1 images to see what packages each flavor ships with.
That might be a good starting point.
This is the list of installed packages in a Slitaz flavor I created selecting only the base system packages. It should include the dependencies.
List of all installed packages
================================================================================
acl 2.2.53 system-tools
acl-dev 2.2.53 development
attr 2.4.48 system-tools
attr-dev 2.4.48 development
busybox 1.31.1 base-system
bzlib 1.0.8 utilities
cdrkit 1.1.11 utilities
cookutils 887 base-system
dialog 1.3_20190211 base-system
e2fsprogs 1.45.5 base-system
elfutils 0.161 development
gcc-lib-base 4.6.3 development
gdbm 1.18.1 misc
gettext 0.19.8.1 development
gettext-base 0.19.8.1 base-system
gettext-tools 0.19.8.1 libs
glib 2.43.3 x-window
glib-dev 2.43.3 development
glibc 2.14.1 meta
glibc-base 2.14.1 base-system
glibc-dev 2.14.1 development
glibc-locale 2.14.1 system-tools
kbd 2.2.0 system-tools
kbd-base 2.2.0 base-system
kmod 23 base-system
libcap 2.33 system-tools
libcomerr 1.45.5 base-system
libcroco 0.6.13 system-tools
libcroco-dev 0.6.13 development
libcrypto 1.0.2u security
libdb 6.2.23 misc
libffi 3.3 development
libffi-dev 3.3 development
libgio 2.43.3 x-window
libgio-dev 2.43.3 development
libgomp 4.6.3 development
liblzma 5.2.5 misc
libsqlite 3.32.1 office
libssl 1.0.2u security
libtic 6.2 development
libtinfo 6.2 development
libxml2 2.9.10 system-tools
libxml2-dev 2.9.10 development
libxml2-tools 2.9.10 system-tools
linux 3.16.55 base-system
linux64 3.16.55 base-system
linux64-agp 3.16.55 base-system
linux64-crypto 3.16.55 base-system
linux64-hfsplus 3.16.55 base-system
linux64-wireless 3.16.55 base-system
lzlib 4.57 base-system
lzma 4.57 base-system
m4 1.4.18 development
memtest 5.01 base-system
ncurses 6.2 base-system
ncurses-common 6.2 base-system
ncursesw 6.2 base-system
openssl 1.0.2u security
pciids 20200329 misc
pcre 8.44 system-tools
pcre-dev 8.44 development
perl 5.14.1 development
pkg-config 0.29.2 development
plop 5.0.15 base-system
python 2.7.17 development
readline 8.0 system-tools
sdft 170314 development
slitaz-base-files 343 base-system
slitaz-boot-scripts 466 base-system
slitaz-configs-base 317 base-system
slitaz-tools 1036 system-tools
sqlite 3.32.1 office
tazlito 529 base-system
tazpkg 944 base-system
udev 182 base-system
usbids 20191031 misc
util-linux-blkid 2.35.1 base-system
util-linux-mount 2.35.1 base-system
util-linux-smartcols 2.35.1 system-tools
util-linux-uuid 2.35.1 base-system
wireless_tools 29 system-tools
zlib 1.2.11 base-system
It should provide a good starting base. Probably some packages might be excluded or other added.
So, doing a bit of comparison, these are the packages from the base flavor list that are missing in the system I created from 210227_rootfs.gz.
Those marked
F- are present in Filou's website, so I can download, install, and test them.
Those marked
-- I might try to cook later from the LFS wok (which I am downloading now).
F-gdbm 1.18.1 misc
F-gettext-tools 0.19.8.1 libs
F-glib 2.43.3 x-window
F-glibc 2.14.1 meta
F-glibc-locale 2.14.1 system-tools
F-kbd 2.2.0 system-tools
F-libcroco 0.6.13 system-tools
F-libcrypto 1.0.2u security
F-libdb 6.2.23 misc
F-libgio 2.43.3 x-window
F-libsqlite 3.32.1 office
--libssl 1.0.2u security
F-libxml2 2.9.10 system-tools
F-libxml2-tools 2.9.10 system-tools
--linux 3.16.55 base-system
--linux64 3.16.55 base-system
--linux64-agp 3.16.55 base-system
--linux64-crypto 3.16.55 base-system
--linux64-hfsplus 3.16.55 base-system
--linux64-wireless 3.16.55 base-system
--memtest 5.01 base-system
F-ncurses 6.2 base-system
F-openssl 1.0.2u security
F-pcre 8.44 system-tools
--plop 5.0.15 base-system
F-readline 8.0 system-tools
F-sqlite 3.32.1 office
--wireless_tools 29 system-tools
I have installed all the packages on the list from Filou's website.
I have rebooted into the system and everything seems okay, although I haven't had the chance to do much.
I couldn't attach a file with the dmesg output but you can see it here:
https://pastebin.com/Gwxuj889
This is the new list of installed packages:
List of all installed packages
================================================================================
acl 2.2.53 system-tools
attr 2.4.48 system-tools
busybox 1.31.1 base-system
bzlib 1.0.8 utilities
cdrkit 1.1.11 utilities
cookutils 887 base-system
dialog 1.3_20190211 base-system
dropbear 2020.81 security
e2fsprogs 1.45.5 base-system
efibootmgr 16 system-tools
efivar 37 system-tools
fuse 2.9.9 system-tools
gcc-lib-base 10.2.0 development
gdbm 1.18.1 misc
get-anydesk 1.00 non-free
gettext 0.19.8.1 development
gettext-base 0.19.8.1 base-system
gettext-tools 0.19.8.1 libs
glib 2.64.4 x-window
glibc 2.32 meta
glibc-base 2.32 base-system
glibc-locale 2.32 system-tools
grub4dos-linux 0.4.4 system-tools
ipxe 1.20.1 system-tools
isapnptools 1.27 system-tools
kbd 2.2.0 system-tools
kbd-base 2.2.0 base-system
kmod 23 base-system
libcap 2.33 system-tools
libcomerr 1.45.5 base-system
libcroco 0.6.13 system-tools
libcrypto 1.0.2u security
libdaemon-dev 0.14 development
libdb 6.2.23 misc
libgio 2.64.4 x-window
liblzma 5.2.5 misc
libsqlite 3.32.1 office
libxml2 2.9.10 system-tools
libxml2-tools 2.9.10 system-tools
linux 4.17.7 base-system
lzlib 4.57 base-system
lzma 4.57 base-system
ncurses 6.2 base-system
ncurses-common 6.2 base-system
ncursesw 6.2 base-system
openssl 1.0.2u security
parted 3.2 system-tools
pciids 20200329 misc
pcmciautils 018 system-tools
pcre 8.44 system-tools
popt 1.18 system-tools
posixovl 1.3 system-tools
ppp 2.4.7 network
readline-dev 8.0 development
rp-pppoe 3.13 network
sdft 170314 development
slitaz-base-files 343 base-system
slitaz-boot-scripts 466 base-system
slitaz-configs-base 317 base-system
slitaz-tools 1036 system-tools
sqlite 3.32.1 office
sysfsutils 2.1.0 system-tools
syslinux 4.06 base-system
syslinux-extra 4.06 system-tools
tazinst 108 base-system
tazirc 22 network
tazlito 529 base-system
tazpkg 944 base-system
tazusb 209 base-system
terminus-font-base 4.40 system-tools
udev 182 base-system
usbids 20191031 misc
util-linux-blkid 2.35.1 base-system
util-linux-mount 2.35.1 base-system
util-linux-smartcols 2.35.1 system-tools
util-linux-uuid 2.35.1 base-system
zlib 1.2.11 base-system
================================================================================
77 packages installed.
Hi,
alanyih, i update slitaz.conf to right arch 'x86_64', i also update mirror for tazpkg to point on my repo, and also add aufs module 5.4.3.
slitaz-basevm.iso as updated.
Need to rebuild packages to fix deps (git repo is uptodate).
Now i have sanity env with tazdev.
Generating new chroot in: /home/slitaz/unstable/chroot
================================================================================
Mirror URL: people.slitaz.org/~shann/slitaz64-stuff/repo/packages/unstable/[ Done ]
Installing: slitaz-base-files [ Done ]
Installing: busybox
[ Done ]
Installing: cookutils [ Done ]
Installing: tazpkg [ Done ]
Installing: lzma [ Done ]
Creating resolv.conf...[ Done ]
Creating TZ...[ Done ]
Restoring host packages list...[ Done ]
================================================================================
Ready to chroot with: tazdev -c unstable
Need fix about /lib symlink to /lib64
root@slitaz:~# tazdev -c unstable
Mounting virtual filesystems...[ Done ]
Chrooting to: /home/slitaz/unstable/chroot
root@slitaz:/# tazpkg list
List of all installed packages
================================================================================
busybox 1.31.1 base-system
cookutils 3.1.7 base-system
gcc-lib-base 9.2.0 development
gettext-base 0.19.8.1 base-system
glibc-base 2.31 base-system
lzlib 4.57 base-system
lzma 4.57 base-system
ncurses-common 6.2 base-system
slitaz-base-files 309 base-system
tazpkg 5.3.3 base-system
zlib 1.2.11 base-system
================================================================================
11 packages installed.
You must log in to post.