Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #69 from hypriot/copy-os-release-to-boot
Browse files Browse the repository at this point in the history
Create os-release file on /boot folder
  • Loading branch information
DieterReuter committed May 14, 2016
2 parents 1454851 + 3a23b16 commit 9a973d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,4 @@ systemctl disable cluster-lab.service
# set device label and version number
echo "HYPRIOT_DEVICE=\"$HYPRIOT_DEVICE\"" >> /etc/os-release
echo "HYPRIOT_IMAGE_VERSION=\"$HYPRIOT_IMAGE_VERSION\"" >> /etc/os-release
cp /etc/os-release /boot/os-release
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@
its(:content) { should match /HYPRIOT_DEVICE="Raspberry Pi"/ }
its(:content) { should match /HYPRIOT_IMAGE_VERSION=/ }
end

describe file('/boot/os-release') do
it { should be_file }
it { should be_owned_by 'root' }
its(:content) { should match /HYPRIOT_OS="HypriotOS\/armhf"/ }
its(:content) { should match /HYPRIOT_OS_VERSION="v0.8.5"/ }
its(:content) { should match /HYPRIOT_DEVICE="Raspberry Pi"/ }
its(:content) { should match /HYPRIOT_IMAGE_VERSION=/ }
end

0 comments on commit 9a973d7

Please sign in to comment.