summaryrefslogtreecommitdiff
path: root/install
AgeCommit message (Collapse)AuthorFilesLines
2013-06-06dracut-install: install libs also from one dir aboveHarald Hoyer3-19/+164
some HW has different flavors of basic libs $ ldconfig -p|fgrep libc.so libc.so.6 (libc6,64bit, hwcap: 0x0000001000000000, OS ABI: Linux 2.6.32) => /lib64/power6/libc.so.6 libc.so.6 (libc6,64bit, hwcap: 0x0000000000000200, OS ABI: Linux 2.6.32) => /lib64/power6x/libc.so.6 libc.so.6 (libc6,64bit, OS ABI: Linux 2.6.32) => /lib64/libc.so.6 because setting LD_HWCAP_MASK=0 does not work, we have to workaround this. $ LD_TRACE_LOADED_OBJECTS=1 LD_HWCAP_MASK=0 /lib64/ld64.so.1 /bin/sh | fgrep libc.so libc.so.6 => /lib64/power6/libc.so.6 (0x000000804e260000) Now we try to install the same library from one directory above the one we installed also.
2013-05-28Fix memory leakKamil Rytarowski1-1/+1
2013-05-28Always check the return number of asprintfKamil Rytarowski1-11/+48
asprintf prints to an allocated string. When successful, the functions return the number of bytes printed. If memory allocation wasn't possible, or some other error occurs, the function will return -1. Don't check strp as a result of asprintf, it's content may be undefined. man 3 asprintf
2013-05-28Use consistiently termination code macrosKamil Rytarowski1-2/+2
Operate in install_all and install_one consequently on EXIT_SUCCESS and EXIT_FAILURE termination code macros as they are meant to be returned from these functions.
2013-05-28Introduce stricter type correctnessKamil Rytarowski1-6/+6
2013-05-28Fix parsing command line argumentsKamil Rytarowski1-1/+1
Adjust correctly the *optstring argument of getopt_long. Add support for a missing option -v|--verbose and drop unknown options -D, -I and -L.
2013-04-29dracut-install: make use of _cleanup_* macrosHarald Hoyer3-135/+281
2013-04-25fixed fips modeHarald Hoyer1-1/+9
- preserve timestamps - copy /lib*/hmaccalc files - run sha512hmac after kernel module loading - add more fips kernel modules
2013-04-18dracut-install: error out, if ldd reports no execution permissionHarald Hoyer1-0/+6
This turns off lazy resolving on noexec mounted tmp directories. https://bugzilla.redhat.com/show_bug.cgi?id=953426
2013-03-14dracut-install: handle more ldd errorsHarald Hoyer1-0/+6
2012-10-03install/dracut-install.c: do not ldd directoriesHarald Hoyer1-1/+4
2012-09-26install/dracut-install.c: support find_binary for <src> <dst>Harald Hoyer1-44/+83
also factor out find_binary()
2012-08-24dracut-install: FIPS workaround for fipscheck dirMilan Broz1-5/+15
In recent Fedora distro are all hmac files located in /lib (to avoid multiarch conflict). When installing hmac file, also install files from these locations. Signed-off-by: Milan Broz <mbroz@redhat.com>
2012-08-23install/dracut-install.c: correct usage() for hmacHarald Hoyer1-1/+1
2012-08-21install/dracut-install.c: No need to compare the NULL byte each time.Colin Guthrie1-1/+1
2012-08-21install/dracut-install.c: Deal gracefully with paths containing double /'sColin Guthrie1-2/+8
While such paths should not be included internally, we cannot guarantee that external scripts with shebangs will not do this. Some older versions of plymouth also resulted in double /'s in some paths, so best deal with this gracefully.
2012-08-21install/dracut-install.c: Ensure deps are resolved when handling scriptsColin Guthrie1-2/+7
If we are doing lazy dep solving and happen to process a script with a shebang on e.g. /bin/bash before we encounter the actual binary itself we effectively ignore the fact that we've been asked to resolve the deps and put the item in the 'seen' hashmap. Thus when we later really do try and resolve deps, we short circuit and don't do anything. Example test case: $ cd $ mkdir -p foo/bin $ cp /bin/bash foo/bin $ echo '#!/bin/bash' >foo/bin/script $ dracut-install -D $HOME/foo -R $HOME/foo/bin/script $HOME/foo/bin/bash
2012-07-26install/dracut-install.c: convert destrootdir to realpathHarald Hoyer1-0/+9
otherwise we get strange errors if it ends with a slash and does not exist.
2012-07-26Remove object file from repo: install/hashmap.oAmadeusz Żołnowski1-0/+0
2012-07-11install/dracut-install.c: check for empty or "/" destdirHarald Hoyer1-6/+11
2012-07-10install/dracut-install.c: redirect stderr to stdout and skip loaderHarald Hoyer1-1/+4
skip if ldd was run on the loader
2012-07-02dracut-install.c: for lazy install shebangs, do not check for existenceHarald Hoyer1-16/+19
2012-07-02dracut-install.c: give info that SOURCE argument is missingHarald Hoyer1-0/+1
2012-07-02move dracut-install to dracutbasedirHarald Hoyer1-14/+4
We do not want to install dracut-install to /usr/bin until all interfaces are set to stone and the manpage is written. Until then the tool is dracut internal.
2012-06-30dracut-install.c: try clone ioctl for more speedHarald Hoyer1-5/+59
2012-06-29install/*: add dracut-install toolHarald Hoyer11-0/+2902