diff options
-rwxr-xr-x | bin/debvm-run | 2 | ||||
-rwxr-xr-x | share/customize-autologin.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/debvm-run b/bin/debvm-run index 839653c..6ed47c4 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -268,7 +268,7 @@ if test -z "$GRAPHICAL"; then ;; esac if test -t 0 && test -t 1 && test -n "$TERM"; then - KERNEL_CMDLINE="$KERNEL_CMDLINE debvm.term=$TERM" + KERNEL_CMDLINE="$KERNEL_CMDLINE TERM=$TERM" fi fi diff --git a/share/customize-autologin.sh b/share/customize-autologin.sh index d7df555..b9a4a8b 100755 --- a/share/customize-autologin.sh +++ b/share/customize-autologin.sh @@ -16,7 +16,7 @@ mkdir "$TARGET/etc/systemd/system/$UNIT.d" ( echo '[Service]' - printf '%s\n' 'ExecStartPre=/bin/sed -n -e "s/.*\\(^\\| \\)debvm\\.term=\\([^ ]*\\).*/TERM=\\2/w/run/debvmterm" /proc/cmdline' + printf '%s\n' 'ExecStartPre=/bin/sed -n -e "s/^\\(.* \\)\\?\\(TERM=[^ ]*\\).*/\\2/w/run/debvmterm" /proc/cmdline' echo 'EnvironmentFile=-/run/debvmterm' echo 'ExecStart=' sed -n 's,^ExecStart=-/sbin/agetty ,&-a root ,p' "$TARGET/lib/systemd/system/$UNIT" |