From dd28dcf3d620a4ac7d0a1532b812213cf094cd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 12 Jan 2022 02:26:25 +0100 Subject: Revert "Move webdav into profiles." It actually reverts the non-need for the nginx module webdav_ext. Since Omnifocus requires PROPFIND. This reverts commit edf6ffe8b399679ba28cc5e558a6838919dd1ee8. --- modules/syslinux/lib/facter/blkid.rb | 18 ------------------ modules/syslinux/lib/facter/efibootmgr.rb | 21 --------------------- modules/syslinux/lib/facter/partid.rb | 16 ---------------- 3 files changed, 55 deletions(-) delete mode 100644 modules/syslinux/lib/facter/blkid.rb delete mode 100644 modules/syslinux/lib/facter/efibootmgr.rb delete mode 100644 modules/syslinux/lib/facter/partid.rb (limited to 'modules/syslinux/lib') diff --git a/modules/syslinux/lib/facter/blkid.rb b/modules/syslinux/lib/facter/blkid.rb deleted file mode 100644 index 0940707..0000000 --- a/modules/syslinux/lib/facter/blkid.rb +++ /dev/null @@ -1,18 +0,0 @@ -Facter.add('blkid') do - setcode do - lines = Facter::Core::Execution.execute('blkid').split("\n") - out = {} - lines.each do |line| - a = line.match(/^([^:]*):(.*)/) - d = {} - remaining = a[2] - while m = remaining.match(/ (\w*)="([^"]*)"/) do - d[m[1]] = m[2] - remaining = m.post_match - end - out[a[1]] = d - end - out - end -end - diff --git a/modules/syslinux/lib/facter/efibootmgr.rb b/modules/syslinux/lib/facter/efibootmgr.rb deleted file mode 100644 index 81a3dc3..0000000 --- a/modules/syslinux/lib/facter/efibootmgr.rb +++ /dev/null @@ -1,21 +0,0 @@ -if Facter::Core::Execution.which('efibootmgr') then - Facter.add('efi') do - setcode do - out = {} - data = Facter::Core::Execution.execute('efibootmgr') - boots = {} - data.split("\n").each do |item| - if a = item.match(/BootOrder: (.*)/) then - out['BootOrder'] = a[1].split(',') - elsif a = item.match(/(\w*): (.*)/) then - out[a[1]] = a[2] - elsif a = item.match(/Boot(\d*)(\*?) (.*)/) - # a[2] contains if it's active - boots[a[1]] = a[3] - end - end - out['boots'] = boots - out - end - end -end diff --git a/modules/syslinux/lib/facter/partid.rb b/modules/syslinux/lib/facter/partid.rb deleted file mode 100644 index 53fc37c..0000000 --- a/modules/syslinux/lib/facter/partid.rb +++ /dev/null @@ -1,16 +0,0 @@ -Facter.add('partinfo') do - setcode do - obj = {} - Dir.entries('/sys/class/block/').each do |entry| - if entry == '.' or entry == '..' then next end - path = "/sys/class/block/#{entry}/partition" - if File.file?(path) then - obj[entry] = { - 'partid' => File.read(path).strip(), - 'device' => File.basename(File.dirname(File.readlink("/sys/class/block/#{entry}"))), - } - end - end - obj - end -end -- cgit v1.2.3