Skip to content

Commit

Permalink
set default value for FAI_RAMDISKS in fai, Closes: #1064442
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Feb 23, 2024
1 parent f8d6c29 commit f5292f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions bin/fai
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ fai_init() {
[ "$FAI_ROOT" = '/' ] && ROOTCMD=
target=$FAI_ROOT
AINSL_TARGET=$FAI_ROOT
FAI_RAMDISKS="$target/var/lib/dpkg"

if [ $do_init_tasks -eq 1 ]; then
trap 'echo "Now rebooting";faireboot' INT QUIT
Expand Down
3 changes: 0 additions & 3 deletions lib/mkramdisk
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ while getopts ans:u opt ; do
done
shift $((OPTIND - 1))

# set default dirs if FAI_RAMDISKS not already set
: ${FAI_RAMDISKS:="$target/var/lib/dpkg"}

# use arguments $@ unless -a was specified
[ $useall -eq 0 ] && FAI_RAMDISKS=$@

Expand Down

0 comments on commit f5292f6

Please sign in to comment.