blob: e58fff68650531f72ee4391170ddcc7a15749bdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
name: stage2-fhs-dirs
kind: chunk
decription: create the FHS 2.3 directory hierarchy and the usual files
install-commands:
# We tweak this a little for stage 2 because everything is installed into
# the one sysroot (/tools). We use symlinked versions of /bin and /lib.
- sh ./create-fhs-dirs "$DESTDIR"
- rmdir "$DESTDIR/bin" "$DESTDIR/lib"
- ln -s "$PREFIX/bin" "$DESTDIR/bin"
- ln -s "$PREFIX/lib" "$DESTDIR/lib"
# This path is hardcoded into eglibc in the file
# sysdeps/unix/sysv/linux/configure; this ugly hack is a compromise.
- |
cpu=$(echo $TARGET | cut -d '-' -f 1)
if [ "$cpu" == "x86_64" ]; then
mkdir -p "$DESTDIR/lib64"
ln -s "/lib/ld-linux-x86-64.so.2" "$DESTDIR/lib64/ld-linux-x86-64.so.2"
fi
- sh ./create-dev-nodes "$DESTDIR"
- install -m 644 passwd "$DESTDIR/etc/passwd"
- install -m 600 shadow "$DESTDIR/etc/shadow"
- install -m 644 interfaces "$DESTDIR/etc/network/interfaces"
- install -m 644 group "$DESTDIR/etc/group"
- install -m 644 ld.so.conf "$DESTDIR/etc/ld.so.conf"
- install -m 644 issue "$DESTDIR/etc/issue"
- install -m 644 services "$DESTDIR/etc/services"
- echo baserock > "$DESTDIR"/etc/hostname
|