mac-linux-kdk icon indicating copy to clipboard operation
mac-linux-kdk copied to clipboard

script lacks case-sensitive filesystem check

Open hailmikhail opened this issue 1 year ago • 1 comments

Should the script enforce the requirement for a case-sensitive filesystem?

While kernel build workflow already offers appropriate guidance, I would have benefited from a script-enforced check. In a rush to build the kernel, I skipped over the following.

  • In README.md, the Usage section already directs the user to a case-sensitive filesystem.
  • git clone of a linux kernel source repo. to a filesystem that is not case-sensitive will return an error or warning.

Enforcement example:

touch casE.tmp case.tmp
case_sensitivity="$(find . -name 'cas*.tm*' 2>/dev/null | wc -l)"
rm -f 'cas*.tmp' || true
if [ "$case_sensitivity" != 2 ]
then
  echo "Error. File system is not case sensitive.

Please use a case-sensitive file system."
  exit 1
fi

hailmikhail avatar Mar 27 '24 16:03 hailmikhail

Yep, we can add this in the new implementation.

azenla avatar Apr 04 '24 04:04 azenla