Sha256: 6a83f53adfe1fcf996e95b3f45f30b395d43225dd4b9f85ec4809a264aab45cf

Contents?: true

Size: 703 Bytes

Versions: 1

Compression:

Stored size: 703 Bytes

Contents

# frozen_string_literal: true

module Getch
  module Void
    class Update
      def initialize
        @log = Log.new
        x
      end

      protected

      # https://docs.voidlinux.org/installation/guides/chroot.html#install-base-system-rootfs-method-only
      def x
        sync
        update
      end

      private

      def sync
        @log.info "Synchronize index...\n"
        ChrootOutput.new '/usr/bin/xbps-install', '-Suy', 'xbps'
      end

      def update
        ChrootOutput.new '/usr/bin/xbps-install -uy'
        ChrootOutput.new '/usr/bin/xbps-install', '-Sy', 'base-system'
        ChrootOutput.new '/usr/bin/xbps-remove -y base-container-full'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
getch-0.7.3 lib/getch/void/update.rb