You are not logged in.

#201 2009-08-07 09:29:08

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: larch-5.3 released

callista wrote:

Hi all,
Sorry for asking this in this post, is someone know where can I find the aufs PKGBUILD ? I need to recompile the package for a 2.6.27 and 2.6.28 kernel.

Thanks

In aur is aufs2-util-git package wink
In repo we have aufs2-util package you need abs tree for download PKGBUILD wink

Last edited by SpeedVin (2009-08-07 09:30:04)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#202 2009-08-07 09:41:00

callista
Member
Registered: 2006-03-04
Posts: 15

Re: larch-5.3 released

I need the old aufs, the one used for kernel < 2.6.29 which was provide in the larch5.3 repo before aufs was integrate in the kernel.

Offline

#203 2009-08-07 12:32:51

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

Re: larch-5.3 released

According to the aufs manual, aufs2 should work for kernels from 2.6.27, but I don't know if the SHWH option is included for the older ones (needed for the overlay merging feature). You'll need to tweak it a bit, but see http://bugs.archlinux.org/task/14923.

Offline

#204 2009-08-07 15:28:09

callista
Member
Registered: 2006-03-04
Posts: 15

Re: larch-5.3 released

I have a live CD generate in 12/2008 with larch5.3 (kernel 2.6.27) but have a problem with a network card driver (intel 82567) that need to be update. I don't want to regenerate all the CD, just want to upgrade the kernel. I have the old larch packages and an entire mirror of the archlinux distrib at 12/2008. I just not have aufs package for 2.6.28 hmm

I have compile a aufs package for kernel 2.6.28 succefully from this archive ftp://ftp.archlinux.org/other/aufs/aufs … 26.tar.bz2
but I dont know exactly which "CONFIG_" option I need to enable for it to work with larch ? do you know wich one you use in the old aufs package ? or perhaps you the old PKGBUILD ?

thanks

Offline

#205 2009-08-08 06:34:18

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

Re: larch-5.3 released

pkgname=aufs
pkgver=20081226
pkgrel=3
_kernver='2.6.28-ARCH'
pkgdesc="Another Unionfs Implementation that supports NFS branches"
arch=('i686' 'x86_64')
url="http://aufs.sourceforge.net/"
license=('GPL2')
depends=('kernel26>=2.6.28' 'kernel26<2.6.29' 'glibc' 'aufs-utils=20081226')
install=$pkgname.install
source=(ftp://ftp.archlinux.org/other/aufs/$pkgname-$pkgver.tar.bz2)
options=(!libtool !makeflags)

build() {
  cd $srcdir/$pkgname || return 1

  # Fix TMPFS_MAGIC error
  sed 's|-le 26|-le 27|g' -i fs/aufs25/Makefile || return 1

  # use splice functions exported by unionfs kernel patch'
  # - important for loopback fs mounts
  sed -i 's|CONFIG_AUFS_SPLICE_PATCH =|CONFIG_AUFS_SPLICE_PATCH = y|' \
     local.mk || return 1

  # this fixes the unionfs patch from hanging aufs
  sed -i 's|CONFIG_AUFS_UNIONFS23_PATCH =|CONFIG_AUFS_UNIONFS23_PATCH = y|' \
     local.mk || return 1

  sed -i 's|CONFIG_AUFS_WORKAROUND_FUSE =|CONFIG_AUFS_WORKAROUND_FUSE = y|' \
     local.mk || return 1

  sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 = y|CONFIG_AUFS_BRANCH_MAX_127 neutral' \
     local.mk || return 1
                                                  
  sed -i 's|CONFIG_AUFS_BRANCH_MAX_1023 =|CONFIG_AUFS_BRANCH_MAX_1023 = y|' \
     local.mk || return 1

  # ???
  sed -i 's|.*CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
    local.mk || return 1
  # disable debug, broken in 2.6.28!
  sed -i 's|CONFIG_AUFS_DEBUG = y|CONFIG_AUFS_DEBUG = |' \
     local.mk || return 1

  # configure for NFS by:
  # 1) configure local.mk to use FILP and LHASH
  sed -i 's|CONFIG_AUFS_PUT_FILP_PATCH =|CONFIG_AUFS_PUT_FILP_PATCH = y|' \
    local.mk || return 1
  sed -i 's|CONFIG_AUFS_LHASH_PATCH =|CONFIG_AUFS_LHASH_PATCH = y|' \
    local.mk || return 1
  # 2) configure local.mk NOT to use FAKE_DM
  sed -i 's|CONFIG_AUFS_FAKE_DM = y|CONFIG_AUFS_FAKE_DM =  |' \
    local.mk || return 1

  # build
  make KDIR=/usr/src/linux-$_kernver/ -f local.mk || return 1

  # install
  install -D -m644 fs/aufs25/aufs.ko \
    $startdir/pkg/lib/modules/$_kernver/fs/aufs25/aufs.ko || return 1

  # tweak the install script for the right kernel version
  sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    $startdir/$pkgname.install || return 1
}

# vim:set ts=2 sw=2 et:
md5sums=('e855ed9edc16953028f22cae393690de')

Offline

#206 2009-08-09 08:41:40

callista
Member
Registered: 2006-03-04
Posts: 15

Re: larch-5.3 released

Thank you gradgrind, I'll test it immediatly smile

Offline

#207 2009-08-10 15:39:32

callista
Member
Registered: 2006-03-04
Posts: 15

Re: larch-5.3 released

ok all is working now smile thank you again.

I just have another problem. I need to do a "depmod" after the CD start or it can't do any modprobe (it say "...bad magic number..." when run modprobe something).

To make it work I have add a depmod at start of rc.sysinit, it make the trick but it's look like an ugly hack (?) ... if someone know how I can resolv this ?

Last edited by callista (2009-08-12 08:30:41)

Offline

#208 2009-08-11 00:41:30

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: larch-5.3 released

@ gradgrind -->

I am using Chakra alpha 3 and it is built on 2.26.30.  I need to build an aufs2 package for 2.26.30 so that the "merge overlays" to mods.sqf will work after closing a live session.  I know you did some work with 2.26.29 so that it would work properly when your repo version of aufs2 was installed.

I am willing to do some work if you point me in the right direction.

BH

Offline

#209 2009-08-11 11:13:49

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

Re: larch-5.3 released

callista wrote:

ok all is working now smile thank you again.

I just have another problem. I need to do a "depmod" after the CD start or it can't do any modprobe (it say "...bad magic number..." when run modprobe something).

To make it work I have had a depmod at start of rc.sysinit, it make the trick but it's look like an ugly hack (?) ... if some one know want where I can see to resolv this ?

I am a bit surprised about your  "...bad magic number..." - I have not yet had any problems running modprobe. Anyway putting depmod in rc.sysinit seems reasonable to me, if it helps, but I'm pretty sure it's run during the larch build process so it really shouldn't be necessary. I wonder what went wrong?

Offline

#210 2009-08-11 11:15:20

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

Re: larch-5.3 released

bwh1969 wrote:

@ gradgrind -->

I am using Chakra alpha 3 and it is built on 2.26.30.  I need to build an aufs2 package for 2.26.30 so that the "merge overlays" to mods.sqf will work after closing a live session.  I know you did some work with 2.26.29 so that it would work properly when your repo version of aufs2 was installed.

I am willing to do some work if you point me in the right direction.

BH

Is that not the standard Arch kernel? Because the standard Arch 2.6.30 kernel has a suitably built aufs2 in it.

Offline

#211 2009-08-11 12:41:40

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: larch-5.3 released

Maybe I posted in the wrong place; it was mentioned in http://larch.berlios.de/  in the last post under "News" that

...it should work a bit better with the changes that have happened in the kernel over the last few months. For i686 there is an aufs2 package which overwrites the kernel's built in module. This is just a temporary hack (I hope) to get session merging working again. With a bit of luck a cleaner solution should soon be possible (but that depends on the Arch kernel and aufs updates). You don't have to use the aufs2 package, but if you don't then session merging won't work (the simple session saving should still work).

When I choose "merge overlays" on logging out, it just skips it and creates a corrupt overlay.ovl and mods.sqf remains unchanged.  Session merging is not working with 2.6.30, or at least the one over at Chakra-Project.  To your knowledge, is this working under <regular> Arch?

If I just choose simple saving, my session is saved, but due to the fact that it just loads the overlay to ramdisk, it really limits modifications that can be made to whatever ram is available on the system.

Any input you have I can relay over at Chakra-project will be greatly appreciated, especially if session merging is working with the latest kernel elsewhere.

Last edited by bwh1969 (2009-08-11 12:49:19)

Offline

#212 2009-08-11 15:07:50

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

Re: larch-5.3 released

Right, sorry about that. I've added another message to the website.

Indeed, session merging should work with the latest larch and the latest kernel. I've just tested with a 2.6.30.1 kernel and it seemed to work fine, I don't think anything significant has changed with the current kernel. There may be other problems with some of the recent changes in Arch, but I'm afraid I have no time to test that at the moment.

Offline

#213 2009-08-11 16:07:31

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: larch-5.3 released

Thanks gradgrind.  I will do some experimenting on my own.

Offline

#214 2009-08-18 02:01:23

REN
Member
From: Porto Alegre
Registered: 2009-07-25
Posts: 17
Website

Re: larch-5.3 released

I have created 2 iso with:

./mklarch -p larch/profiles/xmini

and

./mklarch -p larch/profiles/xmaxi

When I try to boot them using vmware I've got this message from both:

init id c6 respawning too fast disabled for 5 minutes

And I cannot boot with any of this images. What's going on and how can I fix this?

Renan

Offline

#215 2009-08-18 14:28:47

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

Re: larch-5.3 released

I guess that's because of the vc/X to ttyX transition (all vc/ in inittab need to be changed to tty) in Arch.

I've just uploaded a new larch package (5.5.1) that should fix this ...

Offline

#216 2009-08-18 16:47:08

REN
Member
From: Porto Alegre
Registered: 2009-07-25
Posts: 17
Website

Re: larch-5.3 released

Thanks

I will try it.

Offline

#217 2009-08-19 08:19:19

Mazon
Member
Registered: 2008-08-10
Posts: 12

Re: larch-5.3 released

The package larch-live 5.5.0-5 doesnt exist but its still in larch5.db.tar.gz

Last edited by Mazon (2009-08-19 08:37:50)

Offline

#218 2009-08-19 12:26:38

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

Re: larch-5.3 released

Mazon wrote:

The package larch-live 5.5.0-5 doesnt exist but its still in larch5.db.tar.gz

Oops, sorry! Trying to do too many things at once. I hope it's fixed now.

Offline

#219 2009-08-20 07:36:25

Mazon
Member
Registered: 2008-08-10
Posts: 12

Re: larch-5.3 released

Thank you and keep up the great work.

Offline

#220 2009-08-20 08:56:54

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

Re: larch-5.3 released

WARNING!

I have discovered a bug in the merge-overlay feature of larch which can lead to file loss. Unfortunately it is a result of the way the underlying aufs feature works so it probably won't be easy to fix. I have written to the aufs developer just in case he has an idea how the situation might be improved, but I am now looking at alternative ways of merging for the next larch release. Here is my description of the problem:

Consider a three layer union where the middle one and upper one are occasionally merged to form a new middle one and an empty upper one. Before some merge a file residing on the lowest layer is deleted, so that after the merge there is a whiteout for that file on the new middle layer.
Later a new file with the same name is created, so it occupies the upper layer (in my system only the upper layer is writeable, the lower ones are squashfs). Now I have the original file on the lower layer, the whiteout on the middle layer and the new file on the upper layer.
When I next merge the upper layers (with aufs shwh option) I get both the new file and the whiteout, with the result that after the merge the new file is no longer visible (that's how aufs handles the situation), and after another merge it would be totally gone.
This is of course not what I wanted!

Offline

#221 2009-08-20 18:41:09

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: larch-5.3 released

Wow, that is a conundrum.  I had issues of this sort on occasion anyway, but not to the extent that it happened ALL of the time with kernel 2.6.27 BUT never has it happened with kernel .28

Here is what I saw using Chakra alpha 1 (using the 2.6.27 kernel)

If I removed say, VLC player, then reinstalled it, some files in the program would show up as 4GB blank files that "did not exist" in the live filesystem (they were there, the date was something odd like 06-01-1930 and even though they showed up as 4GB, they weren't really taking up any space and could not be deleted, but could be overwritten in the /overlay directory so I figured out how to patch my live running system on the rare instance this happened.

This never happened with Chakra alpha 2 using the 2.6.28 kernel.

Chakra alpha 3 is using the 2.6.30-4 kernel, and the merge funtion is not working like noted here (simple overlay was also broken for them, but they say over there that is is due to something being accidentally deleted from the init scripts and I created a temporary (ugly) hack to re-enable the simple overlay save at least for myself). 

I hope it gets sorted out:-) for the merging: I know many people do not use the live-session saving method for using Arch; however, it does create some additional funtionality and speed in many situations.

Is there anyway for the time being, that say when an overlay becomes to big (overlay.ovl), it can be manually merged while the system is running to create a new mods.sqf?  I already know how to "remount" the boot device as RW manually so I could write to it.

Last edited by bwh1969 (2009-08-20 18:47:21)

Offline

#222 2009-08-21 06:00:28

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

Re: larch-5.3 released

Yes, it is possible to recreate mods.sqf while running, you wouldn't even need to change the scripts much (or at all). But it wouldn't solve the potential file loss problem and there is the additional problem is that while the system is running it is quite possible that files will be changed during the rebuild so that you might end up with a corrupted mods.sqf. This danger is also present for building a larch system from the currently running one (larchify /). I don't want to get mails arising out of this so it's not something I would encourage. However, if you look at the scripts in larch-live/session-save it's basically all in there.

There is no simple way to do the merge in a different way to avoid this potential file loss. The aufs developer is now considering the merging problem and I am working on a completely different approach for the next larch version.

Offline

#223 2009-08-21 12:50:59

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: larch-5.3 released

I copied and edited then renamed the merge_overlay file: I modified it and ran it while running (backed up overlay.ovl and mods.sqf to another device).

Regarding your statement about this not being a good idea, I only supply this for someone to perhaps problem solve where the error is occuring.  It seems as if some file is not mounting property and therefore is creating a blank mods.sqf and then assuming it 'thinks" the process was completed, wipes out stuff to be saved in overlay.ovl

I am getting this running Chakra alpha3

[root@chakra live]# /opt/larch-live/session-save/merge_overlay_x
/opt/larch-live/session-save/merge_overlay_x: line 62: auplink: command not found
Mounting merge union                                                             
mount: wrong fs type, bad option, bad superblock on aufs,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

I checked in the ./livesys directory and

# Make a directory for a merged union
merge_union=/.livesys/merge_union
rm -rf ${merge_union}
mkdir -p ${merge_union}

merge_union=/.livesys/merge_union does not seem to appear during the process.  If I create it, other things show up as errors.

As awlays, thanks for all of your work on this.  I know it is time consuming.

Last edited by bwh1969 (2009-08-21 13:47:25)

Offline

#224 2009-08-21 19:10:43

REN
Member
From: Porto Alegre
Registered: 2009-07-25
Posts: 17
Website

Re: larch-5.3 released

Is it possible to use saving sessions using an image? (.iso or .img)
I ask that because I want to create an usb image (I dont want to use my flash disk for this pourpouse).

Thanks

Last edited by REN (2009-08-21 19:11:10)

Offline

#225 2009-08-21 23:37:15

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: larch-5.3 released

Well, the cool thing until the kernel update and the changes to how aufs works with it (forgive me if my understanding is off) is that it was possible to merge the mods.sqf with the system.sqf and create a new system.sqf.  I then opened the original iso image with isomaster and replaced the mods.sqf, system.sqf and overlay.ovl.  I repacked the iso and burnt it to a DVD.

Offline

Board footer

Powered by FluxBB