First page Back Continue Last page Overview Graphics
Implementation: getupdates funcs
All changesets have to include funcs to get wrappers and install functions:
- reads $WORKDIR / $LEADGOLD / $MACHTYPE (srv vs wks)
- installlink: move a file out and make a symlink (like resolv.conf)
- installfile: complex function that provides 8 ways to install a file
- chattr: only run if argument is file, and skip symlinks
- removefiles: delete file only if it's there, and after chattr -i
- rotatefile: move a file out before a new one is installed (used by changesets and installfile, before replacing a stock file)
- rpm/dpkg wrapper that removes expected stderr output
- apt-get wrapper that defaults to -q –trivial-only for safety
- apt-get-force when you really need it (apt-get -q -y)
Notes: