aboutsummaryrefslogtreecommitdiffstats
path: root/obfuscate.sh
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-11-20 07:18:26 +0800
committerXi Ruoyao <xry111@xry111.site>2023-11-20 07:23:36 +0800
commit01247ac90a16aa37dc31dec1d743d77d09194234 (patch)
tree2079342ae9f499b819dc38b80d3122d1e20e7f78 /obfuscate.sh
parentf16cc36c29a7236852af50166ff8920543681a65 (diff)
kernfs: Revise command creating the link target in case /dev/shm is a symlink
When /dev/shm is a symlink we need to create its target or some tests will fail and Python 3 will be misconfigured. We wrote it as: mkdir -pv $LFS/$(readlink $LFS/dev/shm) But if $LFS/dev/shm is a relative symlink (say ../run/shm), we end up: mkdir -pv /mnt/lfs/../run/shm This command will create /mnt/run/shm, not $LFS/mnt/shm as we expected. Twist it a little to make it work for both absolute symlinks and relative symlinks.
Diffstat (limited to 'obfuscate.sh')
0 files changed, 0 insertions, 0 deletions