mirror of
https://github.com/NixOS/nix
synced 2025-07-04 19:41:48 +02:00
Fix errors about NIX_STORE_DIR being unset.
This commit is contained in:
parent
9769a0ae7d
commit
878c84d5ee
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ nix-store --verify-path --store "$storeA" "$path"
|
||||||
# Verifying path in merged-store
|
# Verifying path in merged-store
|
||||||
nix-store --verify-path --store "$storeB" "$path"
|
nix-store --verify-path --store "$storeB" "$path"
|
||||||
|
|
||||||
hashPart=$(echo $path | sed "s^$NIX_STORE_DIR/^^" | sed 's/-.*//')
|
hashPart=$(echo $path | sed "s^${NIX_STORE_DIR:-/nix/store}/^^" | sed 's/-.*//')
|
||||||
|
|
||||||
# Lower store can find from hash part
|
# Lower store can find from hash part
|
||||||
[[ $(nix store --store $storeA path-from-hash-part $hashPart) == $path ]]
|
[[ $(nix store --store $storeA path-from-hash-part $hashPart) == $path ]]
|
||||||
|
|
|
@ -53,7 +53,7 @@ remountOverlayfs () {
|
||||||
toRealPath () {
|
toRealPath () {
|
||||||
storeDir=$1; shift
|
storeDir=$1; shift
|
||||||
storePath=$1; shift
|
storePath=$1; shift
|
||||||
echo $storeDir$(echo $storePath | sed "s^$NIX_STORE_DIR^^")
|
echo $storeDir$(echo $storePath | sed "s^${NIX_STORE_DIR:-/nix/store}^^")
|
||||||
}
|
}
|
||||||
|
|
||||||
initLowerStore () {
|
initLowerStore () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue