diff --git a/debian/changelog b/debian/changelog index aa786ce..64de8a6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +casper (1.445-ok4) yangtze; urgency=medium + + * Fix bug 130097 for directly installing mode + + -- liuyi Tue, 19 Jul 2022 23:26:59 +0800 + casper (1.445-ok3) yangtze; urgency=medium * Fix bug cannot modprobe overlay module diff --git a/debian/patches/0003-Fix-bug-130097-for-directly-installing-mode.patch b/debian/patches/0003-Fix-bug-130097-for-directly-installing-mode.patch new file mode 100644 index 0000000..c338108 --- /dev/null +++ b/debian/patches/0003-Fix-bug-130097-for-directly-installing-mode.patch @@ -0,0 +1,39 @@ +From: liu-yi92 +Date: Tue, 19 Jul 2022 23:28:52 +0800 +Subject: Fix bug 130097 for directly installing mode + +--- + scripts/casper-bottom/99wayland | 24 ++++++++++++++++++++++++ + 1 file changed, 24 insertions(+) + create mode 100755 scripts/casper-bottom/99wayland + +diff --git a/scripts/casper-bottom/99wayland b/scripts/casper-bottom/99wayland +new file mode 100755 +index 0000000..fd3db2e +--- /dev/null ++++ b/scripts/casper-bottom/99wayland +@@ -0,0 +1,24 @@ ++#!/bin/sh ++ ++PREREQ="" ++ ++prereqs() ++{ ++ echo "$PREREQ" ++} ++ ++case $1 in ++# get pre-requisites ++prereqs) ++ prereqs ++ exit 0 ++ ;; ++esac ++ ++if grep -q boot=casper /proc/cmdline; then ++ if ! grep -q live /proc/cmdline; then ++ if [ -e /root/usr/bin/ukui-session-wayland ]; then ++ sed -i 's/ukui-session/kylin-os-installer-live/' /root/usr/bin/ukui-session-wayland ++ fi ++ fi ++fi diff --git a/debian/patches/series b/debian/patches/series index f96eb2b..306c62c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ 0001-.patch 0002-update-changelog.patch +0003-Fix-bug-130097-for-directly-installing-mode.patch