Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
premsjha
/
op-build
/
af3fa308e4e0bea8287f0ff6cd1c1b009d839542
/
.
/
openpower
/
scripts
/
fixup-target-var
blob: 171b9161e3f7e9208d8a9dac2914d4321532d998 [
file
] [
log
] [
blame
]
#!/bin/sh
# replace /var/* symlinks with actual directories
find $TARGET_DIR
/
var
/
-
type l
|
while
read path
do
target
=
$
(
realpath $path
)
[
-
d
"$target"
]
||
continue
rm $path
mkdir $path
done