Thanks for the steps, I will give a try in my free time..
-----Original Message-----
From: VanCutsem, Geoffroy [mailto:geoffroy.vancutsem(a)intel.com]
Sent: Tuesday, October 30, 2018 6:19 AM
To: Mohammad, Jamal M <MohammadJamal.Mohiuddin(a)ncr.com>; Miguel Bernal Marin <miguel.bernal.marin(a)linux.intel.com>
Cc: dev(a)lists.clearlinux.org
Subject: RE: [Clr-dev] Offline Clear Linux Installation
I think you should be able to just 'dd' the live image on your disk and boot it like that. The downside is that you only have what's in the live image (i.e. not much beyond the core OS)
Mixer is what you want to create your own 'fork' of Clear Linux. If you do *not* want to deviate from the upstream Clear Linux (and want to be able to use the updates posted on https://urldefense.proofpoint.com/v2/url?u=http-3A__download.clearlinux.org…), then your best option would be to create a custom image that includes the bundles you want (and based on the Clear Linux version you want). You can use https://urldefense.proofpoint.com/v2/url?u=http-3A__ister.py&d=DwIFAg&c=gJN… to build such image and flash it onto your disk (using 'dd'). This is something that's worked for me (but is not documented on the website as far as I know). Here are the steps I followed:
On your Clear Linux dev machine (so one that has all Clear Linux dev tools such as mixer, ister, etc.) 1. Tweak an image config file - see below for one that I used myself [1], I used this one as the baseline [2]
Note that I also use a specific version of Clear Linux in there as I wanted to reproduce the exact set-up from one my colleague 2. Build the image: "sudo https://urldefense.proofpoint.com/v2/url?u=http-3A__ister.py&d=DwIFAg&c=gJN… -t my-image.json"
3. Compress the disk: "xz release.img"
4. Boot your target off any Linux distro (e.g. Clear Linux USB stick) 5. Flash your image onto the internal disk, e.g. (assuming a SATA disk as /dev/sda): "unxz -k release.img.xz | sudo dd of=/dev/sda"
6. Reboot your target machine (and unplug the USB stick), it should boot Clear Linux 7. (Optional, but recommended) Resize your partition (set to 20GB in the my-image.json file below) to use the entire disk, this guide can help you do that: https://urldefense.proofpoint.com/v2/url?u=https-3A__clearlinux.org_documen… (this is the reason I have the "storage-utils" bundle in my my-image.json file).
Good luck, and I hope this helps.
Geoffroy
[1] my-image.json
{
"DestinationType": "virtual",
"PartitionLayout": [{"disk": "release.img", "partition": 1, "size": "512M", "type": "EFI"},
{"disk": "release.img", "partition": 2, "size": "4G", "type": "swap"},
{"disk": "release.img", "partition": 3, "size": "15G", "type": "linux"}],
"FilesystemTypes": [{"disk": "release.img", "partition": 1, "type": "vfat", "label" : "boot"},
{"disk": "release.img", "partition": 2, "type": "swap", "label" : "swap"},
{"disk": "release.img", "partition": 3, "type": "ext4", "label" : "root"}],
"PartitionMountPoints": [{"disk": "release.img", "partition": 1, "mount": "/boot"},
{"disk": "release.img", "partition": 3, "mount": "/"}],
"Version": 25620,
"Bundles": ["os-core", "os-core-update", "kernel-native", "glmark2", "vim", "network-basic", "sysadmin-basic", "dev-utils", "desktop", "openssh-server", "service-os", "kernel-pk", "octave", "storage-utils"] } [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_bryteise_is…
> -----Original Message-----
> From: Dev [mailto:dev-bounces(a)lists.clearlinux.org] On Behalf Of
> Mohammad, Jamal M
> Sent: Monday, October 22, 2018 5:25 AM
> To: Miguel Bernal Marin <miguel.bernal.marin(a)linux.intel.com>
> Cc: dev(a)lists.clearlinux.org
> Subject: Re: [Clr-dev] Offline Clear Linux Installation
>
> I made bootable using Rufus and created bootable USB Drive, when I
> booted it on my hardware , there were no options provided to install
> the image on the hard disk, except it just booted as live image.. Is
> there any way we can achieve this offline..
>
> -----Original Message-----
> From: Miguel Bernal Marin [mailto:miguel.bernal.marin(a)linux.intel.com]
> Sent: Sunday, October 21, 2018 8:19 PM
> To: Mohammad, Jamal M <MohammadJamal.Mohiuddin(a)ncr.com>
> Cc: dev(a)lists.clearlinux.org
> Subject: Re: [Clr-dev] Offline Clear Linux Installation
>
> > We have board based on Apollo Lake , and the application doesn't
> > need to
> be connected to Internet. So, I was checking whether Clear Linux works
> here or not. I assume in this scenario, it is better to use Yocto..
> >
>
> You can flash the live-image
> * https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__cdn.download.clearlinux.org_image_clear-2D25720-
> 2Dlive.img.xz&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY19w&r=4h__2a8-
> 7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> mUL6EY9lY7Ga7tdUHMG6GQGrcJhbegNO4K5Ezt5e9qo&e=
>
> or create your own image with mixer tool
> * https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__clearlinux.org_features_mixer-
> 2Dtool&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY19w&r=4h__2a8-
> 7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> T8fM2BnRHQXBIqiBzGMh109uPWDii82B9fhqBih5yk8&e=
> + https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__clearlinux.org_documentation_clear-
> 2Dlinux_guides_maintenance_mixer&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY1
> 9w&r=4h__2a8-7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> NQKCXVSPt173gYlfTV2pmsaHhsqoW9_WCLXe7bL7L1w&e=
> + https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__github.com_clearlinux_how-2Dto-
> 2Dclear&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY19w&r=4h__2a8-
> 7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> EQc-bTUiziGyEUWvjkpPSvERuDOukCDiKpEoY-rcvRY&e=
>
> > -----Original Message-----
> > From: Nesius, Robert A [mailto:robert.a.nesius(a)intel.com]
> > Sent: Saturday, October 20, 2018 11:02 PM
> > To: Mohammad, Jamal M <MohammadJamal.Mohiuddin(a)ncr.com>
> > Cc: dev(a)lists.clearlinux.org
> > Subject: Re: [Clr-dev] Offline Clear Linux Installation
> >
> > *External Message* - Use caution before opening links or attachments
> >
> > We don't have an offline installer yet - it's on our list of things
> > we'd like to
> do but hasn't become a front burner project yet.
> >
> > The use cases/platforms we support has been growing - did you have a
> specific embedded platform in mind?
> >
> > -Rob
> >
> > Sent from mobile device.
> >
> > > On Oct 20, 2018, at 6:21 AM, Mohammad, Jamal M
> <MohammadJamal.Mohiuddin(a)ncr.com> wrote:
> > >
> > > Hi Guys,
> > >
> > > I see "Active Internet" connection as a requirement for installing
> > > OS on
> bare metal.
> > >
> > > Is this compulsory or are there any offline installation technique.
> > >
> > > Can we use Clear Linux on Embedded devices, I see the main page
> > > says
> for " Cloud, IoT and client"
> > >
> > > Thanks and Regards,
> > > Jamal
>
> --
> Regards,
>
> Miguel Bernal Marin Open Source Technology Center
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__clearlinux.org&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY19w&r=4h__2a8-
> 7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> 3016JylftPA9Cu-TpwOt_iiB5kRIuY52ZGybov2F_As&e= Intel
> Corporation
> _______________________________________________
> Dev mailing list
> Dev(a)lists.clearlinux.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.clearlinux.
> org_mailman_listinfo_dev&d=DwIFAg&c=gJN2jf8AyP5Q6Np0yWY19w&r=4h__2a8-7
> N65qoDnmtsyGh_QYq3kPCn-Loy2L0LHnCs&m=DBG9j7JWmVIEUlIq3M9urokkeUG2VD0Z-
> HG8BiXTZHg&s=s1INtB0QVw0DTCgm4QYQr_onT5iCS0xO_kiwdh4gdXg&e=
I think you should be able to just 'dd' the live image on your disk and boot it like that. The downside is that you only have what's in the live image (i.e. not much beyond the core OS)
Mixer is what you want to create your own 'fork' of Clear Linux. If you do *not* want to deviate from the upstream Clear Linux (and want to be able to use the updates posted on download.clearlinux.org), then your best option would be to create a custom image that includes the bundles you want (and based on the Clear Linux version you want). You can use ister.py to build such image and flash it onto your disk (using 'dd'). This is something that's worked for me (but is not documented on the website as far as I know). Here are the steps I followed:
On your Clear Linux dev machine (so one that has all Clear Linux dev tools such as mixer, ister, etc.)
1. Tweak an image config file - see below for one that I used myself [1], I used this one as the baseline [2]
Note that I also use a specific version of Clear Linux in there as I wanted to reproduce the exact set-up from one my colleague
2. Build the image: "sudo ister.py -t my-image.json"
3. Compress the disk: "xz release.img"
4. Boot your target off any Linux distro (e.g. Clear Linux USB stick)
5. Flash your image onto the internal disk, e.g. (assuming a SATA disk as /dev/sda): "unxz -k release.img.xz | sudo dd of=/dev/sda"
6. Reboot your target machine (and unplug the USB stick), it should boot Clear Linux
7. (Optional, but recommended) Resize your partition (set to 20GB in the my-image.json file below) to use the entire disk, this guide can help you do that: https://clearlinux.org/documentation/clear-linux/guides/maintenance/increas… (this is the reason I have the "storage-utils" bundle in my my-image.json file).
Good luck, and I hope this helps.
Geoffroy
[1] my-image.json
{
"DestinationType": "virtual",
"PartitionLayout": [{"disk": "release.img", "partition": 1, "size": "512M", "type": "EFI"},
{"disk": "release.img", "partition": 2, "size": "4G", "type": "swap"},
{"disk": "release.img", "partition": 3, "size": "15G", "type": "linux"}],
"FilesystemTypes": [{"disk": "release.img", "partition": 1, "type": "vfat", "label" : "boot"},
{"disk": "release.img", "partition": 2, "type": "swap", "label" : "swap"},
{"disk": "release.img", "partition": 3, "type": "ext4", "label" : "root"}],
"PartitionMountPoints": [{"disk": "release.img", "partition": 1, "mount": "/boot"},
{"disk": "release.img", "partition": 3, "mount": "/"}],
"Version": 25620,
"Bundles": ["os-core", "os-core-update", "kernel-native", "glmark2", "vim", "network-basic", "sysadmin-basic", "dev-utils", "desktop", "openssh-server", "service-os", "kernel-pk", "octave", "storage-utils"]
}
[2] https://github.com/bryteise/ister/blob/master/release-image-config.json
> -----Original Message-----
> From: Dev [mailto:dev-bounces(a)lists.clearlinux.org] On Behalf Of
> Mohammad, Jamal M
> Sent: Monday, October 22, 2018 5:25 AM
> To: Miguel Bernal Marin <miguel.bernal.marin(a)linux.intel.com>
> Cc: dev(a)lists.clearlinux.org
> Subject: Re: [Clr-dev] Offline Clear Linux Installation
>
> I made bootable using Rufus and created bootable USB Drive, when I booted
> it on my hardware , there were no options provided to install the image on
> the hard disk, except it just booted as live image.. Is there any way we can
> achieve this offline..
>
> -----Original Message-----
> From: Miguel Bernal Marin [mailto:miguel.bernal.marin(a)linux.intel.com]
> Sent: Sunday, October 21, 2018 8:19 PM
> To: Mohammad, Jamal M <MohammadJamal.Mohiuddin(a)ncr.com>
> Cc: dev(a)lists.clearlinux.org
> Subject: Re: [Clr-dev] Offline Clear Linux Installation
>
> > We have board based on Apollo Lake , and the application doesn't need to
> be connected to Internet. So, I was checking whether Clear Linux works here
> or not. I assume in this scenario, it is better to use Yocto..
> >
>
> You can flash the live-image
> * https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__cdn.download.clearlinux.org_image_clear-2D25720-
> 2Dlive.img.xz&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY19w&r=4h__2a8-
> 7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> mUL6EY9lY7Ga7tdUHMG6GQGrcJhbegNO4K5Ezt5e9qo&e=
>
> or create your own image with mixer tool
> * https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__clearlinux.org_features_mixer-
> 2Dtool&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY19w&r=4h__2a8-
> 7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> T8fM2BnRHQXBIqiBzGMh109uPWDii82B9fhqBih5yk8&e=
> + https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__clearlinux.org_documentation_clear-
> 2Dlinux_guides_maintenance_mixer&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY1
> 9w&r=4h__2a8-7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> NQKCXVSPt173gYlfTV2pmsaHhsqoW9_WCLXe7bL7L1w&e=
> + https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__github.com_clearlinux_how-2Dto-
> 2Dclear&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY19w&r=4h__2a8-
> 7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> EQc-bTUiziGyEUWvjkpPSvERuDOukCDiKpEoY-rcvRY&e=
>
> > -----Original Message-----
> > From: Nesius, Robert A [mailto:robert.a.nesius(a)intel.com]
> > Sent: Saturday, October 20, 2018 11:02 PM
> > To: Mohammad, Jamal M <MohammadJamal.Mohiuddin(a)ncr.com>
> > Cc: dev(a)lists.clearlinux.org
> > Subject: Re: [Clr-dev] Offline Clear Linux Installation
> >
> > *External Message* - Use caution before opening links or attachments
> >
> > We don't have an offline installer yet - it's on our list of things we'd like to
> do but hasn't become a front burner project yet.
> >
> > The use cases/platforms we support has been growing - did you have a
> specific embedded platform in mind?
> >
> > -Rob
> >
> > Sent from mobile device.
> >
> > > On Oct 20, 2018, at 6:21 AM, Mohammad, Jamal M
> <MohammadJamal.Mohiuddin(a)ncr.com> wrote:
> > >
> > > Hi Guys,
> > >
> > > I see "Active Internet" connection as a requirement for installing OS on
> bare metal.
> > >
> > > Is this compulsory or are there any offline installation technique.
> > >
> > > Can we use Clear Linux on Embedded devices, I see the main page says
> for " Cloud, IoT and client"
> > >
> > > Thanks and Regards,
> > > Jamal
>
> --
> Regards,
>
> Miguel Bernal Marin Open Source Technology Center
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__clearlinux.org&d=DwIBAg&c=gJN2jf8AyP5Q6Np0yWY19w&r=4h__2a8-
> 7N65qoDnmtsyGh_QYq3kPCn-
> Loy2L0LHnCs&m=VxbV1E3kyOp2iPYPpdahcsxCN1CkpndWO7AVXl6_RNM&s=
> 3016JylftPA9Cu-TpwOt_iiB5kRIuY52ZGybov2F_As&e= Intel
> Corporation
> _______________________________________________
> Dev mailing list
> Dev(a)lists.clearlinux.org
> https://lists.clearlinux.org/mailman/listinfo/dev
Yes. Syntax for the config file will be yaml instead of json though.
Beta testers welcome. :)
-Rob
> On Oct 26, 2018, at 1:36 AM, VanCutsem, Geoffroy <geoffroy.vancutsem(a)intel.com> wrote:
>
> Ister can be used to install Clear Linux and also to create an image based off the upstream content, will this new "clr-installer" provide the same functionality?
>
>> -----Original Message-----
>> From: Dev [mailto:dev-bounces(a)lists.clearlinux.org] On Behalf Of Mark D
>> Horn
>> Sent: Friday, October 26, 2018 1:47 AM
>> To: Dev(a)lists.clearlinux.org
>> Subject: [Clr-dev] [PATCH clr-bundles] Clear Linux OS Installer bundle
>>
>> New bundle for installing the next generation of the Clear Linux OS Installer.
>>
>> This bundle will co-exist with the os-installer bundle while the new installer is
>> in the evaluation phase.
>>
>> Signed-off-by: Mark D Horn <mark.d.horn(a)intel.com>
>> ---
>> bundles/clr-installer | 27 +++++++++++++++++++++++++++
>> 1 file changed, 27 insertions(+)
>> create mode 100644 bundles/clr-installer
>>
>> diff --git a/bundles/clr-installer b/bundles/clr-installer new file mode 100644
>> index 000000000000..509f54e19fd1
>> --- /dev/null
>> +++ b/bundles/clr-installer
>> @@ -0,0 +1,27 @@
>> +# [TITLE]: clr-installer
>> +# [DESCRIPTION]: Image creation and installation for Clear Linux OS #
>> +[STATUS]: Active # [CAPABILITIES]:
>> +# [MAINTAINER]: Mark Horn <mark.d.horn(a)intel.com>
>> +include(curl)
>> +include(iproute2)
>> +include(kbd)
>> +include(locales)
>> +include(openssh-server)
>> +include(telemetrics)
>> +include(tzdata)
>> +include(wpa_supplicant)
>> +bind-utils
>> +btrfs-progs
>> +clr-installer
>> +dosfstools-bin
>> +e2fsprogs-extras
>> +gptfdisk-bin
>> +iputils
>> +less
>> +linux-firmware-extras
>> +linux-firmware-wifi
>> +nano
>> +parted-bin
>> +qemu-extras
>> +xfsprogs-bin
>> --
>> 2.19.1
>>
>> _______________________________________________
>> Dev mailing list
>> Dev(a)lists.clearlinux.org
>> https://lists.clearlinux.org/mailman/listinfo/dev
> _______________________________________________
> Dev mailing list
> Dev(a)lists.clearlinux.org
> https://lists.clearlinux.org/mailman/listinfo/dev
Hi Geoffroy,
"VanCutsem, Geoffroy" <geoffroy.vancutsem(a)intel.com> writes:
> Ister can be used to install Clear Linux and also to create an image based off the
> upstream content, will this new "clr-installer" provide the same functionality?
Take a look at this PR[1] :)
[1] - https://github.com/clearlinux/clr-installer/pull/121
>
>> -----Original Message-----
>> From: Dev [mailto:dev-bounces(a)lists.clearlinux.org] On Behalf Of Mark D
>> Horn
>> Sent: Friday, October 26, 2018 1:47 AM
>> To: Dev(a)lists.clearlinux.org
>> Subject: [Clr-dev] [PATCH clr-bundles] Clear Linux OS Installer bundle
>>
>> New bundle for installing the next generation of the Clear Linux OS Installer.
>>
>> This bundle will co-exist with the os-installer bundle while the new installer is
>> in the evaluation phase.
>>
>> Signed-off-by: Mark D Horn <mark.d.horn(a)intel.com>
>> ---
>> bundles/clr-installer | 27 +++++++++++++++++++++++++++
>> 1 file changed, 27 insertions(+)
>> create mode 100644 bundles/clr-installer
>>
>> diff --git a/bundles/clr-installer b/bundles/clr-installer new file mode 100644
>> index 000000000000..509f54e19fd1
>> --- /dev/null
>> +++ b/bundles/clr-installer
>> @@ -0,0 +1,27 @@
>> +# [TITLE]: clr-installer
>> +# [DESCRIPTION]: Image creation and installation for Clear Linux OS #
>> +[STATUS]: Active # [CAPABILITIES]:
>> +# [MAINTAINER]: Mark Horn <mark.d.horn(a)intel.com>
>> +include(curl)
>> +include(iproute2)
>> +include(kbd)
>> +include(locales)
>> +include(openssh-server)
>> +include(telemetrics)
>> +include(tzdata)
>> +include(wpa_supplicant)
>> +bind-utils
>> +btrfs-progs
>> +clr-installer
>> +dosfstools-bin
>> +e2fsprogs-extras
>> +gptfdisk-bin
>> +iputils
>> +less
>> +linux-firmware-extras
>> +linux-firmware-wifi
>> +nano
>> +parted-bin
>> +qemu-extras
>> +xfsprogs-bin
>> --
>> 2.19.1
>>
>> _______________________________________________
>> Dev mailing list
>> Dev(a)lists.clearlinux.org
>> https://lists.clearlinux.org/mailman/listinfo/dev
> _______________________________________________
> Dev mailing list
> Dev(a)lists.clearlinux.org
> https://lists.clearlinux.org/mailman/listinfo/dev
Lua/luajit/luarocks are tiny, and currently we only have plain
lua, but in order to get it you have to install 1gb of "stuff"
to get it. Luarocks is additionally essential for Lua ecosystem
packages.
[v2: fix LuaJIT spelling]
---
bundles/lua | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 bundles/lua
diff --git a/bundles/lua b/bundles/lua
new file mode 100644
index 0000000..561aa8b
--- /dev/null
+++ b/bundles/lua
@@ -0,0 +1,8 @@
+# [TITLE]: lua
+# [DESCRIPTION]: Lua programming language
+# [STATUS]: Active
+# [CAPABILITIES]: Lua, LuaJIT, and Luarocks
+# [MAINTAINER]: Auke Kok <auke-jan.h.kok(a)intel.com>
+lua
+LuaJIT
+luarocks
--
2.19.1