OSDN Git Service

Erace udev masking.
authorTatsuki Sugiura <sugi@nemui.org>
Tue, 24 Sep 2019 11:29:20 +0000 (20:29 +0900)
committerTatsuki Sugiura <sugi@nemui.org>
Tue, 24 Sep 2019 11:29:29 +0000 (20:29 +0900)
create-image

index 8bf0092..e9d3a58 100755 (executable)
@@ -128,6 +128,8 @@ class ImageCreator
             system("mount", di.device, "#{dir}#{di.path}") or raise "Failed to mount #{di.device} to #{dir}#{path}"
           end
 
             system("mount", di.device, "#{dir}#{di.path}") or raise "Failed to mount #{di.device} to #{dir}#{path}"
           end
 
+          system "rm", "-f", "#{dir}/etc/systemd/system/udev.service", "#{dir}/etc/systemd/system/systemd-udevd.service"
+
           puts "Rewrite fstab..."
           File.open "#{dir}/etc/fstab", "w" do |f|
             devices.map.with_index { |d, idx|
           puts "Rewrite fstab..."
           File.open "#{dir}/etc/fstab", "w" do |f|
             devices.map.with_index { |d, idx|