X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=init.sh;h=4a105fc389a1e4a9033ca46b919f16947af2e42f;hb=2187ddb66ba19a65c993c7df5f1eb4c8bf274c4c;hp=cd8dfa239368d96902c234402518bb916c924c61;hpb=77bdc62b7aa1b706ff3f8d7c4c0e5a363130bdea;p=fedora-riscv.git diff --git a/init.sh b/init.sh index cd8dfa2..4a105fc 100755 --- a/init.sh +++ b/init.sh @@ -1,20 +1,26 @@ #!/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 -o remount,rw / +mount.static -o remount,rw / # Mount standard filesystems. -mount -t proc /proc /proc -mount -t sysfs /sys /sys -mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run +mount.static -t proc /proc /proc +mount.static -t sysfs /sys /sys +mount.static -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run mkdir -p /run/lock # XXX devtmpfs +# Initialize dynamic linker cache. +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` + +hostname stage3 +echo stage3.fedoraproject.org > /etc/hostname + echo echo "Welcome to the Fedora/RISC-V stage3 disk image" echo "https://fedoraproject.org/wiki/Architectures/RISC-V"