comparison core/filesystem/filesystem.sh @ 55:e8b7a4a381f2

core/filesystem: fix invalid links
author David Demelier <markand@malikania.fr>
date Fri, 01 Mar 2019 19:12:17 +0100
parents 0ec1f2db7b32
children deda4251f9bc
comparison
equal deleted inserted replaced
54:0ec1f2db7b32 55:e8b7a4a381f2
27 27
28 install -d $DESTDIR/usr/{bin,sbin,include,lib,share,src} 28 install -d $DESTDIR/usr/{bin,sbin,include,lib,share,src}
29 install -d $DESTDIR/usr/share/man/man{1,2,3,4,5,6,7,8} 29 install -d $DESTDIR/usr/share/man/man{1,2,3,4,5,6,7,8}
30 30
31 install -d $DESTDIR/var/{log,empty,run,spool} 31 install -d $DESTDIR/var/{log,empty,run,spool}
32 install -d $DESTDIR/var/lib/pkg 32 install -d $DESTDIR/var/lib/vpk
33 33
34 install -d -m 1777 $DESTDIR/tmp 34 install -d -m 1777 $DESTDIR/tmp
35 install -d -m 1777 $DESTDIR/var/tmp 35 install -d -m 1777 $DESTDIR/var/tmp
36 36
37 # in vanilla /bin, /sbin and /lib are symlinked to /usr 37 # in vanilla /bin, /sbin and /lib are symlinked to /usr
38 ln -sf $DESTDIR/bin $DESTDIR/usr/bin 38 ln -sf usr/bin $DESTDIR/bin
39 ln -sf $DESTDIR/lib $DESTDIR/usr/lib 39 ln -sf usr/lib $DESTDIR/lib
40 ln -sf $DESTDIR/sbin $DESTDIR/usr/sbin 40 ln -sf usr/sbin $DESTDIR/sbin
41 41
42 # static devices 42 # static devices
43 mknod $DESTDIR/dev/console c 5 1 43 mknod $DESTDIR/dev/console c 5 1
44 chmod 0600 $DESTDIR/dev/console 44 chmod 0600 $DESTDIR/dev/console