Skip to content

Fake uname to use with legacy software builds

Notifications You must be signed in to change notification settings

selimsandal/fake-uname

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Fake UNAME

Modified to emulate x86_64 centos

uname command is often used in scripts to tell which OS is it running on. Sometimes, when Linux gets updated too ofter, scripts may fail in abrupt manner, receiving non-expected values from system uname.

So how to use it?

I run build docker system using this command:

docker run --rm -it -v /home/yury:/home/pokyuser \
	-v /data/yocto:/data/yocto \
	-v /home/yury/uname:/bin/uname \
	crops/poky:ubuntu-16.04 \
	--workdir=/home/pokyuser

As you can see, uname from /home/yury is presented as /bin/uname in a running Docker instance.

And it actually did trick for me. I hope, you may also find it useful in such situations.

About

Fake uname to use with legacy software builds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%