You are not logged in.

#51 2006-07-07 13:27:01

oran001
Member
From: Israel
Registered: 2006-06-26
Posts: 15

Re: archbootstrap 0.4 with tarbuild

well, I think a page in the wiki about quickinst can be very helpful to other pepole who have trouble with your (?) script like I had. Is it possible?

Offline

#52 2006-07-07 14:15:51

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: archbootstrap 0.4 with tarbuild

You had trouble with my script? Please explain - maybe I can improve it!

As to the wiki: anyone can add stuff to it, that's the point. Please feel free to do so.

Offline

#53 2006-07-07 14:26:57

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: archbootstrap 0.4 with tarbuild

In fact, maybe the best thing to do would be to extend the existing page:
http://wiki.archlinux.org/index.php/Usi … Arch_Linux

Offline

#54 2006-07-07 16:12:36

oran001
Member
From: Israel
Registered: 2006-06-26
Posts: 15

Re: archbootstrap 0.4 with tarbuild

a few things:
First, about your script, I'v coied it from the first page of this topic and tried to run if from arch and got this error:

[root@arch ~]# ./archbootstrap oran/ ftp://ftp.archlinux.org
archbootstrap 0.4
No pkg cache found, fetching all pkg files...
Fetching ftp://ftp.archlinux.org/current/os/i686/setup/pacman.pkg.tar.gz.
Fetching ftp://ftp.archlinux.org/current/os/i686/setup/packages.txt.
Error: Could not untar /root/oran/tmp/bootstrappacman.pkg.tar.gz.
[root@arch ~]#

When I tried to run it from knoppix (i think) i got another error, i will check later.

About the wiki, i think my english isn't good enough for this kind of writing. what do you think?

that's it. smile

Offline

#55 2006-07-07 18:49:12

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: archbootstrap 0.4 with tarbuild

Oh ... it sounds like a bit of confusion might have crept into this long thread.

I am not responsible for archbootstrap, but for newarch, which I published when I saw that people were having trouble getting archbootstrap to work. So maybe you should rather try newarch.

About the wiki, i think my english isn't good enough for this kind of writing. what do you think?

I think that's not so important - someone can always tidy it up a bit, if necessary.

Offline

#56 2006-07-08 14:37:38

oran001
Member
From: Israel
Registered: 2006-06-26
Posts: 15

Re: archbootstrap 0.4 with tarbuild

ok, I'l what i can do.

Offline

#57 2007-01-03 16:19:19

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: archbootstrap 0.4 with tarbuild

:?

I use archbootstrap and got some problems

[root@sgu ~]# ./archbootstrap /mnt/tmp/ http://download.ourlinux.net:81/Linux/ArchLinux
archbootstrap 0.4
Using existing pkg cache...
Fetching http://download.ourlinux.net:81/Linux/ArchLinux/current/os/i686/setup/pacman.pkg.tar.gz.
Fetching http://download.ourlinux.net:81/Linux/ArchLinux/current/os/i686/setup/packages.txt.
Fetching http://download.ourlinux.net:81/Linux/ArchLinux/current/os/i686/glibc-2.5-3.pkg.tar.gz.
warning: cannot find chroot binary - unable to run scriptlets
loading package data... done.
error: unsatisfied dependencies:
  glibc: requires kernel-headers>=2.6.19.1

Error: Could not add a package.

I have chroot in /usr/sbin/chroot, and my kernel-headers' version is :

[root@sgu ~]# pacman -Qi kernel-headers
Name           : kernel-headers
Version        : 2.6.19.1-1

I've no idea why these errors occured.

I mount my rootfs to /mnt/tmp,  and copy /bin/bash to /mnt/bin/bash (and with some necessary lib files). Try to chroot:

[root@sgu ~]# chroot /mnt/tmp/
chroot: cannot run command `/bin/bash': No such file or directory
[root@sgu ~]# ls /mnt/tmp/bin/
bash
[root@sgu ~]# ls /mnt/tmp/lib/
libc.so.6  libdl.so.2  libhistory.so.5  libncurses.so.5  libreadline.so.5

Is there someone who knows why?

Offline

#58 2007-01-03 16:28:49

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: archbootstrap 0.4 with tarbuild

oran001 wrote:

a few things:
First, about your script, I'v coied it from the first page of this topic and tried to run if from arch and got this error:

[root@arch ~]# ./archbootstrap oran/ ftp://ftp.archlinux.org
archbootstrap 0.4
No pkg cache found, fetching all pkg files...
Fetching ftp://ftp.archlinux.org/current/os/i686/setup/pacman.pkg.tar.gz.
Fetching ftp://ftp.archlinux.org/current/os/i686/setup/packages.txt.
Error: Could not untar /root/oran/tmp/bootstrappacman.pkg.tar.gz.
[root@arch ~]#

When I tried to run it from knoppix (i think) i got another error, i will check later.

About the wiki, i think my english isn't good enough for this kind of writing. what do you think?

that's it. smile

see this in the script:

tar xzf ${PKG_PACMAN##*/}|| error "Could not untar ${BOOTSTRAP}${PKG_PACMAN##*/}."

Maybe your "tar" command return 0 if it untar the tarball successful, so I think you should change this to:

if [ tar xzf ${PKG_PACMAN##*/} == 0] then
   error "Could not untar ${BOOTSTRAP}${PKG_PACMAN##*/}."
fi

Offline

#59 2008-10-25 19:50:21

dark_dragon
Member
Registered: 2008-09-25
Posts: 7

Re: archbootstrap 0.4 with tarbuild

Just to alert prospective Archers that this seems to be outdated.

The Script looks for /setup/packages.txt, which does not exist in the repositories.

I'm wondering about how I should modify it to adapt to the new db.pkg.tar.gz file. If anybody has any pointers, they're more than welcome!

no, not those kind of pointers:  http://xkcd.com/138/

Offline

#60 2008-10-25 21:41:38

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: archbootstrap 0.4 with tarbuild

int *ptr;

Seriously, I really liked that script. Now I just copy my / partition around :-D

Last edited by lucke (2008-10-25 21:42:46)

Offline

Board footer

Powered by FluxBB