#!/bin/bash -
# Init script installed in stage3 disk image.
-LD_LIBRARY_PATH=/usr/lib64
-export LD_LIBRARY_PATH
-
# Root filesystem is mounted as ro, remount it as rw.
mount.static -o remount,rw /
# XXX devtmpfs
# Initialize dynamic linker cache.
-ldconfig
+ldconfig /usr/lib64 /usr/lib /lib64 /lib
+
+# There is no hardware clock, just ensure the date is not miles out.
+date `date -r /usr/bin +%m%d%H%M%Y`
echo
echo "Welcome to the Fedora/RISC-V stage3 disk image"