add missing livecd-creator logic

This commit is contained in:
Louis Abel 2024-02-14 20:57:54 -07:00
parent 532ef89ca1
commit 78f5768405
Signed by: label
GPG Key ID: B37E62D143879B36
27 changed files with 249 additions and 0 deletions

View File

@ -89,6 +89,16 @@ touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end
%post
# cinnamon configuration

View File

@ -89,6 +89,16 @@ touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end
%post
sed -i 's/^livesys_session=.*/livesys_session="kde"/' /etc/sysconfig/livesys

View File

@ -89,6 +89,16 @@ touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end
%post
# mate configuration

View File

@ -88,6 +88,16 @@ touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end
%post
sed -i 's/^livesys_session=.*/livesys_session="gnome"/' /etc/sysconfig/livesys

View File

@ -88,6 +88,16 @@ touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end
%post
sed -i 's/^livesys_session=.*/livesys_session="gnome"/' /etc/sysconfig/livesys

View File

@ -89,6 +89,16 @@ touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end
%post
# xfce configuration

View File

@ -125,3 +125,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -121,3 +121,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -125,3 +125,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -121,3 +121,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -125,3 +125,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -121,3 +121,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -127,3 +127,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -123,3 +123,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -127,3 +127,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -123,3 +123,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -127,3 +127,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -123,3 +123,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -354,3 +354,12 @@ if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
fi
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -125,3 +125,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -121,3 +121,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -355,3 +355,12 @@ if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
fi
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -125,3 +125,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -121,3 +121,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -354,3 +354,12 @@ if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
fi
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -125,3 +125,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end

View File

@ -121,3 +121,12 @@ rm -f /etc/machine-id
touch /etc/machine-id
%end
%post --nochroot
# only works on x86_64
if [ "unknown" = "i386" -o "unknown" = "x86_64" ]; then
# For livecd-creator builds. livemedia-creator is fine.
if [ ! -d /LiveOS ]; then mkdir -p /LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk /LiveOS
fi
%end