2 # Init script installed in stage3 disk image.
4 # Root filesystem is mounted as ro, remount it as rw.
5 mount.static -o remount,rw /
7 # Mount standard filesystems.
8 mount.static -t proc /proc /proc
9 mount.static -t sysfs /sys /sys
10 mount.static -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
15 # Initialize dynamic linker cache.
16 ldconfig /usr/lib64 /usr/lib /lib64 /lib
18 # There is no hardware clock, just ensure the date is not miles out.
19 date `date -r /usr/bin +%m%d%H%M%Y`
22 echo "Welcome to the Fedora/RISC-V stage3 disk image"
23 echo "https://fedoraproject.org/wiki/Architectures/RISC-V"
32 # Sync disks and shut down.