• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

KVM host image creator.Jessica Lockwood


Commit MetaInfo

Révision5f490af6e4ff89322e3850114a6ed056515a9bba (tree)
l'heure2020-06-28 21:16:42
AuteurTatsuki SUGIURA <sugi@osdn...>
CommiterTatsuki SUGIURA

Message de Log

Fix rewriting loopback device name on grub config.

Change Summary

Modification

--- a/create-image
+++ b/create-image
@@ -167,7 +167,7 @@ class ImageCreator
167167 system("chroot", dir, "grub-mkconfig", "-o", "/boot/grub/grub.cfg") or raise "grub-mkconfig fails."
168168 system(*%W(grub-install --no-floppy --grub-mkdevicemap=#{dir}/boot/grub/device.map --root-directory=#{dir} #{root_dev})) or raise "grub-install failed."
169169 cfg = File.read "#{dir}/boot/grub/grub.cfg"
170- cfg.gsub! %r{mapper/loop0p}, "sda"
170+ cfg.gsub! %r{mapper/loop\d+p}, "sda"
171171 File.write "#{dir}/boot/grub/grub.cfg", cfg
172172
173173 unless Array(run_cmds).empty?