Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:coolo:fakedevel
base-image
unhardlink.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File unhardlink.sh of Package base-image
#! /bin/sh # BMW for strange reasons does not allow hard links out of # fear that it breaks splitting up into partitions, so we # transfer to relative symlinks set -e last_inode= last_file= find / -type f -xdev -links +1 | xargs stat -c "%i|%n" 2>/dev/null | sort | while IFS="|" read inode file; do if test "$inode" != "$last_inode"; then last_inode=$inode last_file=$file continue fi echo "relink $file to $last_file" rm $file ln -s --relative $last_file $file done find / -type l -xdev | while read file; do link=`readlink "$file"` case "$link" in /*) ;; *) continue ;; esac echo "link relative $file to $link" ln -sf --relative $link /$file done
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor