fedora-release-26-1$>L4@ 7`>>@F?@6d  +x|  D t   |lt 5( `8 l9 :!>#B#G$H$|I$X$Y%Z%([%4\%D]%^&b'd(e(f(l(t(u)v)t*@$@,@0Cfedora-release261Fedora release filesFedora release files such as various /etc/ files that define the release.YVbuildvm-11.phx2.fedoraproject.org*`Fedora ProjectFedora ProjectMITFedora ProjectSystem Environment/Basehttps://pagure.io/fedora-releaselinuxnoarch-- This is intended to be run as an RPM scriptlet. -- Keep this file in sync with the convert-to-edition -- shell script local VARIANT_FILE = "/usr/lib/variant" -- Read in /usr/lib/variant and determine the edition local function read_variant() local variant local f = io.open(VARIANT_FILE, "r") if f ~= nil then while true do local line = f:read() if line == nil then break end local m = line:match("^VARIANT_ID=([^\n]+)") if m ~= nil then variant = m end end f:close() end return variant end -- Atomically replace a file with new contents local function writefile(path, data) local tmp = path .. ".convert-to-edition" local f = io.open(tmp, "w+") if f == nil then return end f:write(data) f:close() if not os.rename(tmp, path) then os.remove(tmp) end end -- Forcibly replace a symlink local function symlink(from, to) os.remove(to) assert(posix.symlink(from, to)) end -- Run a subroutine in a child process local function execute(...) local pid = posix.fork() if pid == 0 then posix.exec(...) posix.exit(1) elseif pid ~= -1 then local status = posix.wait(pid) if status ~= 0 then local program = ... error(program .. " exited with status " .. status) end end end -- Remove preset files for other editions -- This should never be necessary, but it's best to be safe local function clear_presets() local path = "/usr/lib/systemd/system-preset" for file in posix.files(path) do if file:match("^80-.*%.preset$") then os.remove(path .. "/" .. file) end end end -- Get a list of presets that need to be enabled or disabled -- as part of the installation of this edition local function read_presets(path) local result = {} local f = assert(io.open(path)) if f ~= nil then while true do local line = f:read() if line == nil then break end local cmd, arg = line:match("^([^ \t]+)[ \t]+([^\n \t]+)") if cmd == "enable" or cmd == "disable" then result[#result + 1] = arg end end f:close() end return result end local function set_variant(variant) writefile(VARIANT_FILE, "VARIANT_ID=" .. variant .. "\n") end local function set_release(release) symlink("./os.release.d/os-release-" .. release, "/usr/lib/os-release") end local function set_issue(release) symlink("./os.release.d/issue-" .. release, "/usr/lib/issue") end -- release: the VARIANT_ID for os-release -- issue: which /etc/issue file to install -- presets: whether this edition has extra presets beyond the -- defaults to enable or disable local variants = { atomichost = {release = "atomichost", issue = "fedora", presets = false}, cloud = {release = "cloud", issue = "fedora", presets = false}, nonproduct = {release = "fedora", issue = "fedora", presets = false}, server = {release = "server", issue = "server", presets = true}, workstation = {release = "workstation", issue = "fedora", presets = true}, } -- Call out to systemctl to enable or disable presets local function set_presets(edition, apply_presets) if variants[edition].presets then local target = "/usr/lib/systemd/system-preset/80-" .. edition .. ".preset" symlink("../../os.release.d/presets/80-" .. edition .. ".preset", target) if apply_presets then local presets = read_presets(target) local systemctl = "/usr/bin/systemctl" if posix.access(systemctl, "x") then --fork off a systemctl call local pid = assert(posix.fork()) if pid == 0 then -- Child posix.exec(systemctl, "preset", "-q", table.unpack(presets)) -- In case exec() fails os.exit(17) else -- RPM assert(posix.wait(pid)) end end end end end local function convert_to_edition(edition, apply_presets) local variant = variants[edition] if variant == nil then error("undefined edition: " .. edition) end set_release(variant.release) set_issue(variant.issue) clear_presets() set_presets(edition, apply_presets) end local function install_edition(edition) -- Create the variant file if it does not already exist. This needs -- to be done on both installation and upgrade, to ensure that we -- upgrade from F23 and earlier properly. if not posix.access(VARIANT_FILE, "f") then set_variant(edition) end if read_variant() == edition then -- (On initial installation only), fix up after %systemd_post -- in packages possibly installed before our preset file was -- added -- On upgrades, do not enable or disable presets to avoid -- surprising the user local initial_install = arg[2] == 1 convert_to_edition(edition, initial_install) end end local function uninstall_edition(edition) -- If we are uninstalling, we need to reset the variant file and -- force the os-release file back to os-release-fedora. We do this -- in %preun so that we don't have any time where the os-release -- symlink is dangling (since in %postun, the os-release-$EDITION -- file will have already been removed) if arg[2] == 0 then if read_variant() == edition then set_variant("nonproduct") convert_to_edition("nonproduct", false) end end end -- On initial installation, we'll at least temporarily put the non-product -- symlinks in place. It will be overridden by fedora-release-$EDITION -- %post sections because we don't write the /usr/lib/variant file until -- %posttrans to avoid trumping the fedora-release-$EDITION packages. -- This is necessary to avoid breaking systemctl scripts since they rely on -- /usr/lib/os-release being valid. We can't wait until %posttrans to default -- to os-release-fedora. if arg[2] == "0" then set_release(fedora) set_issue(fedora) end -- We also want to forcibly set these paths on upgrade if we are explicitly -- set to "nonproduct" if read_variant() == "nonproduct" then convert_to_edition("nonproduct", false) end\  'A큤A큤A큤AA큤YVYVYVYVYVYVYVYVYVYVYVYVYVYVYVYVYVYVYVYVYVYVYVYVb76598da0e2414694bc92f0b4acc4590b0ff0fcc900650792345fbb945cc5d10c7490f1639e4b05897efd23bc7d64688196bed95ee69aed9d08c39f37e14f8ce2b9bde05b2026bd656e33dc53be057228fc806c78ec955c6614a99348da5ad989489d28fbd325690224dd76c0d7ae403177e15a0d63758cc0171327b5ba2aa8573d770ce50ac46013b3d9f2189c24503500328301afb8974e8185e3568c3a7f7c10e6145860268e2ff3e6d171621709190b67b813b636ab74debecc402224f6a037ee720a5c511d7b257216cc81b55b5ebeb09775426288f2d46d614594d9e5680fcb0f00e6aa6532cbc0611b76f860d72b625312a62a7cb6b9c4d54f4d6c4a13127b197b9eae62eb84eeed69b0413419612238332006183e36a3fba895783788832d558e57a44680f704c5188feec4392d09aa1d889cc9e4a865c24027ed47fe98708047560db5a5bcf7495c3108709760cbf6202df7b216cbd7918725e7d0f../usr/lib/issue../usr/lib/issue.net../usr/lib/os-releasefedora-releasefedora-release@@@rootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootfedora-release-26-1.src.rpmconfig(fedora-release)fedora-releasefedora-release-nonproductfedora-release-standardredhat-releasesystem-releasesystem-release(26)      config(fedora-release)fedora-repos(26)rpmlib(BuiltinLuaScripts)rpmlib(CompressedFileNames)rpmlib(FileDigests)rpmlib(PayloadFilesHavePrefix)rpmlib(PayloadIsXz)26-114.2.2-13.0.4-14.6.0-14.0-15.2-14.13.0.1YV=@Y;@Xg@Xf@X2@X2@X=W Mohan Boddu - 26-0.8Mohan Boddu - 26-0.7Mohan Boddu - 26-0.6Dennis Gilmore - 26-0.5Dennis Gilmore - 26-0.4Zbigniew Jędrzejewski-Szmek - 26-0.3Stephen Gallagher - 26-0.2Mohan Boddu - 26-0.1- Setup for F26 Final - Enable NetworkManager-wait-online.service to match NetworkManager.service- Enable cups on-demand socket activation - Enable ostree-remount on ostree-based systems- Disable systemd-networkd-wait-online.service- update for branching- bump for needed rebuild- Fix mangled Release tag- Move convert-to-edition to its own subpackage - Eliminate circular dependency on bash from the base package - Enable switcheroo-control.service- setup for rawhide being f26fedora-release-nonproductfedora-release-standardredhat-release 26-126-12622-0.8 23-0.322-0.8fedora-releaseissueissue.netos-releaseredhat-releasesystem-releasesystem-release-cpeissueissue.netos-releaseos.release.dissue-fedoraos-release-fedorapresetsmacros.distsystem-preset85-display-manager.preset90-default.preset99-default-disable.presetuser-presetvariantfedora-releaseFedora-Legal-README.txtLICENSE/etc//usr/lib//usr/lib/os.release.d//usr/lib/rpm/macros.d//usr/lib/systemd//usr/lib/systemd/system-preset//usr/share/licenses//usr/share/licenses/fedora-release/-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -fasynchronous-unwind-tablesdrpmxz2noarch-redhat-linux-gnuASCII textcannot open `/builddir/build/BUILDROOT/fedora-release-26-1.noarch/usr/lib/issue' (No such file or directory)cannot open `/builddir/build/BUILDROOT/fedora-release-26-1.noarch/usr/lib/os-release' (No such file or directory)directorycannot open `/builddir/build/BUILDROOT/fedora-release-26-1.noarch/usr/lib/variant' (No such file or directory)UTF-8 Unicode text-- This is intended to be run as an RPM scriptlet. -- Keep this file in sync with the convert-to-edition -- shell script local VARIANT_FILE = "/usr/lib/variant" -- Read in /usr/lib/variant and determine the edition local function read_variant() local variant local f = io.open(VARIANT_FILE, "r") if f ~= nil then while true do local line = f:read() if line == nil then break end local m = line:match("^VARIANT_ID=([^\n]+)") if m ~= nil then variant = m end end f:close() end return variant end -- Atomically replace a file with new contents local function writefile(path, data) local tmp = path .. ".convert-to-edition" local f = io.open(tmp, "w+") if f == nil then return end f:write(data) f:close() if not os.rename(tmp, path) then os.remove(tmp) end end -- Forcibly replace a symlink local function symlink(from, to) os.remove(to) assert(posix.symlink(from, to)) end -- Run a subroutine in a child process local function execute(...) local pid = posix.fork() if pid == 0 then posix.exec(...) posix.exit(1) elseif pid ~= -1 then local status = posix.wait(pid) if status ~= 0 then local program = ... error(program .. " exited with status " .. status) end end end -- Remove preset files for other editions -- This should never be necessary, but it's best to be safe local function clear_presets() local path = "/usr/lib/systemd/system-preset" for file in posix.files(path) do if file:match("^80-.*%.preset$") then os.remove(path .. "/" .. file) end end end -- Get a list of presets that need to be enabled or disabled -- as part of the installation of this edition local function read_presets(path) local result = {} local f = assert(io.open(path)) if f ~= nil then while true do local line = f:read() if line == nil then break end local cmd, arg = line:match("^([^ \t]+)[ \t]+([^\n \t]+)") if cmd == "enable" or cmd == "disable" then result[#result + 1] = arg end end f:close() end return result end local function set_variant(variant) writefile(VARIANT_FILE, "VARIANT_ID=" .. variant .. "\n") end local function set_release(release) symlink("./os.release.d/os-release-" .. release, "/usr/lib/os-release") end local function set_issue(release) symlink("./os.release.d/issue-" .. release, "/usr/lib/issue") end -- release: the VARIANT_ID for os-release -- issue: which /etc/issue file to install -- presets: whether this edition has extra presets beyond the -- defaults to enable or disable local variants = { atomichost = {release = "atomichost", issue = "fedora", presets = false}, cloud = {release = "cloud", issue = "fedora", presets = false}, nonproduct = {release = "fedora", issue = "fedora", presets = false}, server = {release = "server", issue = "server", presets = true}, workstation = {release = "workstation", issue = "fedora", presets = true}, } -- Call out to systemctl to enable or disable presets local function set_presets(edition, apply_presets) if variants[edition].presets then local target = "/usr/lib/systemd/system-preset/80-" .. edition .. ".preset" symlink("../../os.release.d/presets/80-" .. edition .. ".preset", target) if apply_presets then local presets = read_presets(target) local systemctl = "/usr/bin/systemctl" if posix.access(systemctl, "x") then --fork off a systemctl call local pid = assert(posix.fork()) if pid == 0 then -- Child posix.exec(systemctl, "preset", "-q", table.unpack(presets)) -- In case exec() fails os.exit(17) else -- RPM assert(posix.wait(pid)) end end end end end local function convert_to_edition(edition, apply_presets) local variant = variants[edition] if variant == nil then error("undefined edition: " .. edition) end set_release(variant.release) set_issue(variant.issue) clear_presets() set_presets(edition, apply_presets) end local function install_edition(edition) -- Create the variant file if it does not already exist. This needs -- to be done on both installation and upgrade, to ensure that we -- upgrade from F23 and earlier properly. if not posix.access(VARIANT_FILE, "f") then set_variant(edition) end if read_variant() == edition then -- (On initial installation only), fix up after %systemd_post -- in packages possibly installed before our preset file was -- added -- On upgrades, do not enable or disable presets to avoid -- surprising the user local initial_install = arg[2] == 1 convert_to_edition(edition, initial_install) end end local function uninstall_edition(edition) -- If we are uninstalling, we need to reset the variant file and -- force the os-release file back to os-release-fedora. We do this -- in %preun so that we don't have any time where the os-release -- symlink is dangling (since in %postun, the os-release-$EDITION -- file will have already been removed) if arg[2] == 0 then if read_variant() == edition then set_variant("nonproduct") convert_to_edition("nonproduct", false) end end end -- If we get to %posttrans and nothing created /usr/lib/variant, set it to -- nonproduct. install_edition("nonproduct")utf-8? 7zXZ !#,bU]"k%a覲kxy-:Ԏ͚$Q`M B4 b‡+ ,'"@r8E/:40Kn c3{*bjK#:%$}}{X\S*r= pv_3cHEZ{"obZ^2 "%A6?&c-/>?r7s-b2 c^ b{jg xd4s(ab# n;VG[MHS3|Pw+uHCZ;*;VO6(UDu¼ʪsGIoȑ$)&;թR㧫dcDGcjyYwc2bJYKхz^gw95/Ȑu28Ο0 x8t/..<7simQ(T>s9i*IrK[/Nj0oLH6ҝJP>Y8 2 \/[Z\Ҩv2˲ g%Q=ffRɺZ lVB,wh&„).څks⺿*ojiNJ;RA#R# xQmhZȮPErs=HvyrX6,m$[gs"w}(`M^ u?_]&r6X'eNm Wk`'H7m2d}#5e ?axm nyp%n`uhOuvohZ3FDF;S>ҝd*t`k(WHH~4e;z 9zoWI׷y60zgp[%0r !z,߂ƐW"RýA/턐`0B/*3d3>\vޭ}qCl˶ޮTNY$hŏ6V2 )eIi /f2kM~!O{;sD#Ѿic~퇑_