SliTaz SliTaz Forum

You are not logged in.

#1 2018-09-01 23:52:14

mr-man
Member
Registered: 2018-09-01
Posts: 3

connect to internet in "chroot"

Firstly thanks a lot to all the people who make Slitaz I love how light and no nonsense it is. The TazPanel is what a system config panel should be even for larger heavy distros.

The boot-loader in the GUI installer doesn't work for me though. Does it generally work for people?

I thought the easiest way around this would be to chroot into my install (installed without the boot-loader option ticket) and install grub2 and run grub-install --root-directory=/ /dev/sda and grub-mkconfig -o /boot/grub/grub.cfg , this is generally the most fail safe way in my experience.

grub-mkconfig -o /boot/grub/grub.cfg outside of chroot gives various errors even went mounted (what seems like_ properly.

How can I connect toa DHCP ethernet connection via chroot?

Edit: I'm using the 32bit rolling ISO.

Offline

#2 2018-09-02 00:04:44

mr-man
Member
Registered: 2018-09-01
Posts: 3

Re: connect to internet in "chroot"

I tried using tazpkg install of local grubs2 packages downloaded by the live cd (while chroot in the install on my HDD) but I get these errors.

root@slitaz:/var/cache/tazpkg/5.0/packages# tazpkg install /copied-packages/grub2-2.02.tazpkg

/usr/bin/tazpkg: line 32: can't create /dev/null: Permission denied

/usr/bin/tazpkg: line 32: can't create /dev/null: Permission denied

/usr/bin/tazpkg: line 38: can't create /dev/null: Permission denied

Please specify a package name on the command line.

/usr/bin/tazpkg: line 32: can't create /dev/null: Permission denied

/usr/bin/tazpkg: line 32: can't create /dev/null: Permission denied

/usr/libexec/tazpkg/help: line 138: can't create /dev/null: Permission denied

install, i

/usr/libexec/tazpkg/help: line 144: can't create /dev/null: Permission denied

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

/usr/libexec/tazpkg/help: line 145: can't create /dev/null: Permission denied

/usr/libexec/tazpkg/help: line 145: can't create /dev/null: Permission denied

This command allows the installation of a local package with the .tazpkg

extension (install or -i).

Offline

#3 2018-09-02 00:09:33

mr-man
Member
Registered: 2018-09-01
Posts: 3

Re: connect to internet in "chroot"

I tried all these recommendations.

  # tazpkg install package-1.0.tazpkg

  # tazpkg -i path/to/package-1.0.tazpkg --forced

  # tazpkg -i path/to/package-1.0.tazpkg --root=/mnt/rootfs

  # tazpkg -i nano-2.4.0.tazpkg mc-4.8.14.tazpkg

  # tazpkg -i --list=/tmp/development

  # cd /home/boot/packages; tazpkg -i nano-2.4.0.tazpkg --local

Offline

#4 2018-09-02 14:49:57

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: connect to internet in "chroot"

Hi mr-man, If you want to connect to internet on chroot, you first the jump on chroot connect to internet, and on terminal as root make this step

var=”your partition to jump on chroot”

mount -t proc none $var/proc

mount --rbind /sys $var/sys

mount /dev $var/dev

cp /etc/resolv.conf $var/etc/resolv.conf

chroot $var

and you are connected on chroot!

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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