github.com/xyproto/u-root@v6.0.1-0.20200302025726-5528e0c77a3c+incompatible/files/etc/profile.d/uroot.sh (about) 1 #!/bin/bash 2 3 export PATH="/go/bin:/ubin:$PATH/buildbin:/bbin" 4 5 # The IFS lets us force a rehash every time we type a command, so that when we 6 # build uroot commands we don't keep rebuilding them. 7 IFS=`hash -r` 8 9 # TODO: why do they need this private tmpfs? 10 # 11 # IF the profile is used, THEN when the user logs in they will need a 12 # private tmpfs. There's no good way to do this on linux. The closest 13 # we can get for now is to mount a tmpfs of /go/pkg/%s_%s :-( Same 14 # applies to ubin. Each user should have their own. 15 sudo mount -t tmpfs none /go/pkg/linux_amd64 16 sudo mount -t tmpfs none /go/pkg/linux_arm64 17 sudo mount -t tmpfs none /go/pkg/linux_arm 18 sudo mount -t tmpfs none /ubin 19 sudo mount -t tmpfs none /pkg