This code hs been taken from of util-linux It was modified that it only has one directory and just the needed files