mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 02:47:56 +01:00
fix relative path
This commit is contained in:
parent
9abd64f768
commit
9fec285df0
2 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||

|
||||
 [](https://app.codacy.com/gh/JasonN3/build-container-installer/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
||||
|
||||
# Build Container Installer Action
|
||||
This action is used to enerate an ISO for installing an OSTree stored in a container image. This utilizes the anaconda command `ostreecontainer`
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "-report_about WARNING"
|
||||
echo "-indev ${PWD}/results/images/boot.iso"
|
||||
echo "-indev ${PWD}/../results/images/boot.iso"
|
||||
echo "-outdev ${ISO_NAME}"
|
||||
echo "-boot_image any replay"
|
||||
echo "-joliet on"
|
||||
|
|
@ -23,7 +23,7 @@ then
|
|||
pushd "${FLATPAK_DIR}" > /dev/null
|
||||
for file in $(find * -type f)
|
||||
do
|
||||
echo "-map $(pwd)/${file} flatpak/${file}"
|
||||
echo "-map ${PWD}/${file} flatpak/${file}"
|
||||
echo "-chmod 0444 flatpak/${file}"
|
||||
done
|
||||
popd > /dev/null
|
||||
|
|
@ -31,14 +31,14 @@ fi
|
|||
|
||||
if [ -f $(pwd)/sb_pubkey.der ]
|
||||
then
|
||||
echo "-map $(pwd)/sb_pubkey.der sb_pubkey.der"
|
||||
echo "-map $(pwd)/../sb_pubkey.der sb_pubkey.der"
|
||||
echo "-chmod 0444 /sb_pubkey.der"
|
||||
fi
|
||||
|
||||
pushd "${PWD}/container" > /dev/null
|
||||
pushd "${PWD}/../container" > /dev/null
|
||||
for file in $(find "${IMAGE_NAME}-${IMAGE_TAG}" -type f)
|
||||
do
|
||||
echo "-map $(pwd)/${file} ${file}"
|
||||
echo "-map ${PWD}/${file} ${file}"
|
||||
echo "-chmod 0444 ${file}"
|
||||
done
|
||||
popd > /dev/null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue