Skip to content

Commit

Permalink
Regression fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cerebrate committed May 13, 2021
1 parent fe89efd commit 2b2e620
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion binsrc/genie/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal static int GetSystemdPid ()
}

#region Subprocesses

// Run a subprocess and wait for it to exit, returning its return code.
internal static int RunAndWait (string command, string[] args)
{
Expand Down
12 changes: 5 additions & 7 deletions binsrc/genie/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ where Config.CloneEnv.Contains (de.Key)

// *** PARSE COMMAND-LINE
// Create options.
Option optVerbose = new Option ("--verbose",
"Display verbose progress messages");
Option optVerbose = new Option<bool> ("--verbose",
getDefaultValue: () => false,
description: "Display verbose progress messages");
optVerbose.AddAlias ("-v");
optVerbose.Argument = new Argument<bool>();
optVerbose.Argument.SetDefaultValue(false);

// Add them to the root command.
var rootCommand = new RootCommand();
Expand Down Expand Up @@ -177,7 +176,7 @@ public static int InitializeHandler (bool verbose)

// Daemonize expects real uid root as well as effective uid root.
using (var r = new RootPrivilege())
{
{
// Init the bottle.
InitializeBottle(verbose);
}
Expand Down Expand Up @@ -410,7 +409,6 @@ private static void InitializeBottle (bool verbose)
systemdPid = Helpers.GetSystemdPid();

Console.Write (".");

} while ( systemdPid == 0);

// Now that systemd exists, write out its (external) PID.
Expand All @@ -435,7 +433,7 @@ private static void InitializeBottle (bool verbose)
if (timeout < 0)
{
// What state are we in?
var state = Helpers.RunAndWaitForOutput ("sh", new string[] {"-c", $"nsenter -t {systemdPid} -m -p systemctl is-system-running 2> /dev/null"});
var state = Helpers.RunAndWaitForOutput ("sh", new string[] {"-c", $"\"nsenter -t {systemdPid} -m -p systemctl is-system-running 2> /dev/null\""});

if (state.StartsWith("starting"))
{
Expand Down
4 changes: 2 additions & 2 deletions binsrc/genie/genie.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<VersionPrefix>1.41</VersionPrefix>
<VersionPrefix>1.42</VersionPrefix>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>false</SelfContained>
Expand All @@ -21,7 +21,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Ini" Version="5.0.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20574.7" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.21216.1" />
<PackageReference Include="Tmds.LibC" Version="0.5.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion binsrc/runinwsl/runinwsl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<VersionPrefix>1.41</VersionPrefix>
<VersionPrefix>1.42</VersionPrefix>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>false</SelfContained>
Expand Down
2 changes: 1 addition & 1 deletion package/arch/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Contributor: facekapow, rayfalling, Ducksoft

pkgname=genie-systemd
pkgver=1.41
pkgver=1.42
pkgrel=1
pkgdesc="A quick way into a systemd \"bottle\" for WSL"
arch=('x86_64')
Expand Down
6 changes: 6 additions & 0 deletions package/debian/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
systemd-genie (1.42) buster bullseye bookworm sid focal bionic; urgency=medium

* Regression fixes.

-- Alistair Young <avatar@arkane-systems.net> Thu, 13 May 2021 05:40:00 -0500

systemd-genie (1.41) buster bullseye bookworm sid focal bionic; urgency=medium

* Moved user-runtime-dir@.service override to ExecStartPost.
Expand Down
5 changes: 4 additions & 1 deletion package/fedora/genie.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%global project https://github.com/arkane-systems/genie/
%global version 1.41
%global version 1.42

# debuginfo is 'not supported' for .NET binaries
%global debug_package %{nil}
Expand Down Expand Up @@ -80,6 +80,9 @@ rm -rf %{buildroot}
%{_unitdir}/user-runtime-dir@.service.d/override.conf

%changelog
* Thu May 06 2021 Alistair Young <avatar@arkane-systems.net> 1.42-1
- Regression fixes.

* Thu May 06 2021 Alistair Young <avatar@arkane-systems.net> 1.41-1
- Moved user-runtime-dir@.service override to ExecStartPost.
- Fix virtualization detection for non-custom kernels.
Expand Down

0 comments on commit 2b2e620

Please sign in to comment.