forked from DGNum/liminix
systemconfig "install" cmd honours prefix on source
This commit is contained in:
parent
3c941b4ce2
commit
c0c4752350
1 changed files with 5 additions and 2 deletions
|
@ -81,8 +81,11 @@ in attrset:
|
||||||
$STRIP --remove-section=.note --remove-section=.comment --strip-all makedevs -o $out/bin/activate
|
$STRIP --remove-section=.note --remove-section=.comment --strip-all makedevs -o $out/bin/activate
|
||||||
ln -s ${s6-init-bin}/bin/init $out/bin/init
|
ln -s ${s6-init-bin}/bin/init $out/bin/init
|
||||||
cat > $out/bin/install <<EOF
|
cat > $out/bin/install <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh -e
|
||||||
cp -v -fP $out/bin/* $out/etc/* \''${1-/}/persist
|
prefix=\''${1-/}
|
||||||
|
src=\''${prefix}$out
|
||||||
|
mkdir -p \$prefix/persist
|
||||||
|
cp -v -fP \$src/bin/* \$src/etc/* \$prefix/persist
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/install
|
chmod +x $out/bin/install
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue