Skip to content

Commit

Permalink
V12.5
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbls committed Jul 15, 2024
1 parent 5117d21 commit b19be70
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## V12.5

* Improvements
* Error handling improvements in several plugins
* `user` plugin now fails (as it should) if the useradd command fails
* Bug Fixes
* Correct 1piboot.conf handling

## V12.4

* New Features
Expand Down
14 changes: 8 additions & 6 deletions sdm
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Command Switches for --customize and --burn or as noted
# Initialize and Parse the command
#
#
version="V12.4"
version="V12.5"
sdmcommandline="$0 $@" #Used in error messages
apps="" #List of apps to install in sdm-base-installs
aptcache="" #IP address of apt-cacher-ng server
Expand Down Expand Up @@ -480,7 +480,7 @@ fi
[ "$csrc" != "" -a ! -d "$csrc" ] && errexit "? Custom source directory '$csrc' not found"
[ "$cscript" != "" -a ! -f "$cscript" ] && errexit "? Custom Phase Script '$cscript' not found"
[ "$cscript" != "" -a ! -x "$cscript" ] && errexit "? Custom Phase Script '$cscript' not executable"
p1bootconf="$(fndotfullpath $p1bootconf)"
pi1bootconf="$(fndotfullpath $pi1bootconf)"
[ "$pi1bootconf" != "" -a ! -f "$pi1bootconf" ] && errexit "? Custom 1piboot.conf file '$pi1bootconf' not found"
[ "$rebootwait" != "" ] && checknumeric "$rebootwait" "--reboot"
[ "$imgext" != "" ] && checknumeric "$imgext" "--xmb"
Expand Down Expand Up @@ -898,23 +898,25 @@ else

logfreespace
logtoboth "> Copy sdm to $sdmdir in the $dimgdevname" # Yes, already done above ;)

if [ "$pi1bootconf" != "" ]
then
logtoboth "> Copy Custom 1piboot.conf '$pi1bootconf' to the $dimgdevname"
cp -a $pi1bootconf $SDMPT/etc/sdm/1piboot.conf
setfileownmode $SDMPT/etc/sdm/1piboot.conf 644
cp -a $pi1bootconf $SDMPT/$sdmdir/1piboot #Drop a copy in $sdmdir in the IMG
setfileownmode $SDMPT/etc/sdm/1piboot/$(basename $pi1bootconf) 644
setfileownmode $SDMPT/$sdmdir/1piboot/$(basename $pi1bootconf) 644
else
if [ -d $src/1piboot -a -f $src/1piboot/1piboot.conf ]
then
cp -a $src/1piboot/1piboot.conf $SDMPT/etc/sdm/
setfileownmode $SDMPT/etc/sdm/1piboot.conf 644
cp -a $src/1piboot/1piboot.conf $SDMPT/$sdmdir/1piboot
setfileownmode $SDMPT/$sdmdir/1piboot/1piboot.conf 644
fi
fi
[ -f $SDMPT/etc/sdm/1piboot.conf ] && chmod 644 $SDMPT/etc/sdm/1piboot.conf
# Also copy the original version into $sdmdir/1piboot
cp -a $src/1piboot/1piboot.conf $SDMPT/$sdmdir/1piboot
setfileownmode $SDMPT/$sdmdir/1piboot/1piboot.conf 644

if [ "$cscript" != "" ]
then
logtoboth "> Copy Custom Phase Script '$cscript' to $sdmdir in the $dimgdevname"
Expand Down

0 comments on commit b19be70

Please sign in to comment.