cookutils view uname @ rev 1050

cook: fix(): add `fix symlinks` function (for "glusterfs" package, and maybe some other)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 20 13:55:27 2018 +0300 (2018-04-20)
parents
children 799a5c056c55
line source
1 #!/bin/sh
2 # uname - special "fake" wrapper for using inside SliTaz cooker chroot.
3 # Although SliTaz cooker *host arch* is 64-bit, SliTaz *target arch* may be
4 # 32-bit, and some configuration tools use uname could be improperly configured.
5 # This also applies to the kernel versions of the host and the target systems.
7 . /etc/slitaz/cook.conf
8 kernel_version=$(. /home/slitaz/wok/linux/receipt; echo $VERSION)
9 uname_r=$(/bin/busybox uname -r)
10 /bin/busybox uname $@ | sed "s|x86_64|$ARCH|g; s|$uname_r|$kernel_version-slitaz|g"