FrugalPup 20 - Puppy frugal installer.

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#91 Post by bigpup »

That is always a problem to solve.

Need to provide some useful information about what the choice buttons would do, but what is too little or too much information. Is everyone understanding it?

Really, to find out what works.
Just try something and see how people use it.
Ask for some feedback on how FrugalPup was to use.

OH, I think we are doing that now :D :lol:

Anyway, I think you are making FrugalPup be a much better program to use!!

Note:
In developing YaPi installer.
It had been released for some time, before someone posted about having problems translating some of the info statements, to other languages.
We had to do some adjustments to wording, so it would translate correctly, for complete understanding.
The person originally posting about problem, really did some good work, on helping with this.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

Secure Boot again

#92 Post by foxpup »

rcrsn51 wrote:I used frugalpup_13 to set up a UEFI flash drive. It had both .efi files.

I booted it on a machine with SecureBoot ON. But I got the same "failure to authenticate" error.

So I don't think that this is a one-size-fits-all solution to dealing with SecureBoot.
This intrigues me. With frugalpup_13 I can boot with Secure Boot ON, like bigpup.

Are you sure it boots from the USB, in other words from the 2 efi? And not from your HD for example?
You changed the boot order in the BIOS/EFI interface?
.

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

FrugalPup v15r, StickPup v15r and DiskPup v15r - Puppy fruga

#93 Post by gyro »

FrugalPup v15r, StickPup v15r and DiskPup v15r - Puppy frugal installer.
This is a preview/beta version of FrugalPup v16 which will be released in conjuction with mio16...tar

It's a "proof of concept" for a Puppy installer that uses only a single boot loader, grub2.
More on grub2 later.

Download extra sfs, http://www.mediafire.com/folder/rdyc5lg ... up_15r.sfs (2.0 MiB).


Package new features:

1. Full support for locating the frugal install directory on an f2fs partition, including the vmlinuz and initrd.gz files.
(This is the first FrugalPup to do this.)

2. A new simple front-end, DiskPup.
Like StickPup, it's a minimalist single wizard that completely installs a single Puppy.
Unlike StickPup, it does not do any formating of any partitions, so it is suitable for installing to a HD as well as a stick.
It allows for the Pupy install location and the boot location to be on separate partitions, even different devices.
So it is useful for settingup a Puppy device with 2 partitions, a fat32 boot parititon and a Linux Puppy partition.

3. The interface of the bootentry utility has been modified to reflect the requirements of this Grub2 only FrugalPup.
Although it can still produce a grub4dos boot entry if you specify the "g4dos" parameter.
Run "bootentry -h" in a console to see it's updated usage help message.


FrugalPup GUI changes:

1. A new dialog to enable the specifying "pfix=" boot paramater to override the one generated by bootentry.

2. A new "Settings" dialog, to modify the config file.
The top part allows the choosing which "optional advanced dialogs" should be dislayed by the "Puppy" facility.
These are: "Separate save partition", "Kernel boot parameters" and "Pfix boot parmeter".
The defualt behaviour of FrugalPup is for all 3 of these dialogs to be disabled.
The bottom part provides text fields to edit the list of "Kennel boot parameters" shown in the "Puppy" facility,
and the "Kernel boot paramaters" used, without question, by both StickPup and DiskPup.

3. The "ISO" facility has been renamed "BootCD", to better reflect what it does.

4. Some improvements to the descriptive text in some dialogs, (more needs to be done here).


Grub2:

The Grub2 code included in "grub2-efi.tar.xz", "grub2-mbr.tar.xz" and "grub2-iso.tar.xz" has not been "borrowed" from anywhere.
It is compiled from the source in "grub-2.04.tar.gz" from https://ftp.gnu.org/gnu/grub/.
None of it is signed, so I'm fairly sure that it won't support "SecureBoot enabled".

I abandoned "borrowing" the consolidated debian grub2 efi code because it did not include the f2fs module.
Both the uefi and non-uefi codes work on the principle of a minimal "core" plus all modules.
So FrugalPup utilites always call the bootentry utility with the "fs" parameter to insert "insmod" commands for the appropriate fs-type module.

The directory structure is that produced by the grub2 utility "grub-install".
Except that the significant "grub.cfg" file is stored in the root of the partition, where it is easy to find.
i.e. click on the relavant partition icon on the desktop and it's right there.

Adding uefi booting to a fat32 partition, (which is the first partition of the device), is easy, even if you don't use any of these utilities,
use tar to extract "grub2-efi.tar.xz" into the root of the partition and then provide an appropriate "grub.cfg" file.

It would be a little easier if the grub2 package were installed in Puppy by default, so FrugalPup did not have to include it in "grub2-...tar.xz" files.
And the grub2 utilities such as "grub-install" and "grub-mkimage" could be utilised directly.
Hmm..., perhaps I should look at making a "grub-2.04.sfs".


gyro

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#94 Post by bigpup »

Testing.
FrugalPup v15r
Did an install to a USB flash drive.
Installed Bionicpup64 8.0.
Booted with no problems to a working desktop.

When selecting option for boot loader.
Selected both.

This is booted on a Chromebook.
It has a cracked bios that is modified to be able to boot something other than Chrome OS.
The bios basically works like a old style bios, not UEFI.
The USB showed as a USB drive as boot device.
Seems like the both boot loader option worked for this computer.

Wonder if putting both boot loader setup files on this USB flash drive, would make it able to boot on any computer.
UEFI and old style bios. :idea:

Tried the USB on a very new UEFI computer.
(Had to put UEFI in legacy mode to boot from the USB)
It showed two boot devices to select.
USB drive
USB UEFI drive
I assume that is because it has both boot loaders on it.

Tried to boot with each one.
Both booted OK.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#95 Post by bigpup »

Had problems getting a Puppy to boot from an internal eMMC.
FrugalPup was suggested to be used to do a Puppy install to a internal eMMC.
http://www.murga-linux.com/puppy/viewtopic.php?t=117322
Using FrugalPup made the install boot-able.
The last few posts in the topic tell you the results.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#96 Post by gyro »

bigpup wrote:Tried the USB on a very new UEFI computer.
(Had to put UEFI in legacy mode to boot from the USB)
It showed two boot devices to select.
USB drive
USB UEFI drive
I assume that is because it has both boot loaders on it.

Tried to boot with each one.
Both booted OK.
The two devices provide boot as non-uefi and uefi, respectively.
You can tell the difference during the boot process, via the font of the display, this is most obvious for the console displays from the "init" script. During a uefi boot, these are quite small.

My desktop is a uefi machine with "SecureBoot" disabled and "CSM" enabled. My bios will display a non-uefi device even if I have installed only uefi on the usb stick, of course if I click on the non-uefi deivce the boot fails.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#97 Post by gyro »

bigpup wrote:Had problems getting a Puppy to boot from an internal eMMC.
FrugalPup was suggested to be used to do a Puppy install to a internal eMMC.
http://www.murga-linux.com/puppy/viewtopic.php?t=117322
Using FrugalPup made the install boot-able.
The last few posts in the topic tell you the results.
Thanks for this.
FrugalPup is mostly agnostic to the device itself, it's much more focused on the fs-type of the partitions.
My only guess as to why FrugalPup might work on an eMMC device where other installers might not, is it always defines the partition containing 'vmlinuz' and 'initrd.gz' by the partitions UUID. This is done by it's 'bootentry' utility.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

A question

#98 Post by gyro »

The current FrugalPup has a "GParted" button that launches gparted.
It's there simply as a convenience thing, and I'm thinking of removing it in the next release, since it's not an actual part of the FrugalPup utility.

Does any one have a preference for it to remain?

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

FrugalPup 15v - Puppy frugal installer,

#99 Post by gyro »

This is a preview/beta version of FrugalPup 16 which will be released in conjuction with mio16...tar

It's a "proof of concept" for a Puppy installer that supports uefi "SecureBoot" using grub2 and a MOK.

Download extra sfs 'frugalpup_15v.sfs' from http://www.mediafire.com/folder/rdyc5lgzpeij1/frugalpup (2.5 MiB).


FrugalPup GUI changes:

1. The "GParted" button has gone.

2. The main screen now disappears when a facility button is clicked.
It then re-appears when the facility is finished.


Grub2:

"SecureBoot enabled" is supported by using a MOK (Machine Owner Key).
This means that verification fails the first time Puppy is booted on a particular machine,
but this launches a 'MokManager' which enables the enrolling of a MOK from the file '/ENROLL_THIS_KEY_IN_MOKMANAGER.cer' on the boot partition.
The MOK is stored in NVRAM, so once this is done on a machine, subsequent boots will proceed without interuption.
This is all achieved by borrowing 4 files from 'Super-UEFIinSecureBoot-Disk_minimal_v2.zip', downloaded from https://github.com/ValdikSS/Super-UEFIinSecureBoot-Disk site.
The 4 files are contained in 'grub2-sbm.tar.xz' (SecureBootMok).
Further information on the 'MokManager' screens is available on https://habr.com/en/post/446238/ ("Untrusted software first boot with shim.").

My compiled grub2 is still used, and still unsigned, it's now '/EFI/BOOT/grubx64_real.efi'.
The kernel and initrd.gz, remain unsigned.

Note: uefi booting with "SecureBoot" disabled, and non-uefi booting, work as before.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

FrugalPup 15v

#100 Post by gyro »

I forgot to mention a new feature:
The "source type" has a new option, "this".
Which is a simple way of selecting the install directory of the current running Puppy as the source directory.

gyro

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#101 Post by bigpup »

Running in Xenialpup64 7.5

frugalpup_15v.sfs

On the fist window, none of the buttons work.
Exit one does work :lol:
Attachments
capture23508.png
(32.17 KiB) Downloaded 174 times
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#102 Post by gyro »

bigpup wrote:On the fist window, none of the buttons work.
Exit one does work :lol:
Sorry about that, my bad.
I managed to miss a file '/usr/local/mi-utils/kill-parent-yad' when creating the sfs file.

I've uploaded a fixed version.
Please download extra sfs 'frugalpup_15v.sfs' from http://www.mediafire.com/folder/rdyc5lgzpeij1/frugalpup (2.5 MiB).

@bigpup, Thanks for testing.

gyro
Last edited by gyro on Wed 27 Nov 2019, 10:56, edited 1 time in total.

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#103 Post by gyro »

FrugalPup 15w, StickPup 15w, DiskPup 15w and f2StickPup 15w - Puppy frugal installer.
This is another preview/beta version of FrugalPup 16 which will be released in conjuction with mio16...tar

Download extra sfs 'frugalpup_15w.sfs' from http://www.mediafire.com/folder/rdyc5lgzpeij1/frugalpup (2.5 MiB).

Changes:

1. New minimal frontend, 'f2StickPup', taking advantage of the new f2fs support.
This is like 'StickPup' except it formats the stick with a small fat32 partition and the remainder as an f2fs partition.
Grub2 is installed in the fat32 partition.
The sourced Puppy is installed in the f2fs partition.
This is a quick way to install a Puppy that can use a savefolder.

2. Some more improvements to descriptive text in some dialogs.
Particularly the initial dialogs in 'StickPup' and 'DiskPup'.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

FruglPup v16

#104 Post by gyro »

I think I will remove the "SecureBoot enabled" support currently in version 15v and version 15w, for version 16.
It's really "crippling" "SecureBoot" while appearing to support it.

And then try to implement full MOK support for version 17, i.e. where the user has to generate their own MOK if "SecureBoot" is enabled. And sign the stuff they want to boot, with their own key.

gyro

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

Secure Boot FYI

#105 Post by foxpup »

FYI

I read and found out that Ubuntu has made grub2 efi's that will boot an unsigned kernel in Secure Boot.
The one you used in frugalpup<=13 from zilla-efi is from Bionic.
It is probably the last one Ubuntu has made that will boot unsigned kernels in Secure Boot.

As far as I know Ubuntu was the only distro that allowed unsigned kernels to boot in Secure Boot.
Fedora an debian certainly did not.
Ubuntu had good reasons and continued it for a long time, from QQ up to BB. But for some other reasons I cannot track down, they are getting more restrictive.
DD does not allow it anymore.
I would not be surprised that Microsoft is getting some hold on canonical.

Hmmm, I still like Secure Boot OFF best ;-)

belham2
Posts: 1715
Joined: Mon 15 Aug 2016, 22:47

Re: Secure Boot FYI

#106 Post by belham2 »

foxpup wrote:FYI

As far as I know Ubuntu was the only distro that allowed unsigned kernels to boot in Secure Boot.
Fedora an debian certainly did not.

Hi Foxpup,

I updated one of MX-19 installs today, and I watched when the kernel was updated, it was designated as "unsigned".

MX-Linux is based on Debian, fairly strictly.

So I am wondering about the "unsigned" comment.

I will check my other Linux distros. I run about 7-8 of them thru the household here, outside of the pups and ddogs.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

Re: FruglPup v16

#107 Post by bigpup »

gyro wrote:I think I will remove the "SecureBoot enabled" support currently in version 15v and version 15w, for version 16.
It's really "crippling" "SecureBoot" while appearing to support it.

gyro
That is what I have been testing in 15w.
As you say. SecureBoot is not working.
I was hoping you had found the answer to making it work.
Doing an install to a USB flash drive and having secure boot disabled, does seem to work OK.

I am still testing some of the other options in 15w.
I will just report problems, if any.

Thanks very much for trying to develop a Puppy Linux installer, that will make an install, that will work with secure boot enabled!!

Booting from a USB flash drive, with secure boot disabled, is normal for about all UEFI computers.
However, if you install to an internal drive.
Some, (like the one I have) will only boot from internal drive, if secure boot is enabled.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

Secure Boot (MX, debian, ubuntu)

#108 Post by foxpup »

hello @belham2
it was designated as "unsigned"
I am (almost) sure it is. MX does ask to turn OFF Secure Boot because.
And it probably uses a shim+grub2 from debian or just grub2 without shim.

You can check signing of shim (microsoft), grub2-efi (debian or nothing for MX) and the kernel (for MX not signed) with

Code: Select all

pesign -i 'path/to/file' -l
Install pesign through PPM.

You probably run with Secure Boot OFF
or you have Secure Boot ON and you use shim+grub2 from ubuntu QQ-BB.
You could have shim+grub2 from Ubuntu installed by setting up a dual boot with an ubuntu install or from using frugalpup (<=13).

Interesting read:
An Overview of Secure Boot in Debian
In fact I use Ubuntu's shim+GRUB to boot Debian Stretch on my laptop without turning off secure boot.

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Is Bios And/Or UEFI boot possible

#109 Post by mikeslr »

Hi gyro & All,

On one occasion I used LICK under Windows 7 to create a Puppy on a USB-Key. The Puppy was one in an efi file was provided in the ISO. If I recall correctly, I was able to boot the USB-Key from my computers which do not employ the UEFI mechanism, and from my wife's computer which does require that the system be UEFI compliant.

I wonder if frugal installer will (also?) create a USB-Puppy bootable from both 'Bios' and UEFI computers?

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

Re: Is Bios And/Or UEFI boot possible

#110 Post by gyro »

mikeslr wrote:I wonder if frugal installer will (also?) create a USB-Puppy bootable from both 'Bios' and UEFI computers?
Yes, it does, BUT it only works reliably for UEFI with "SecureBoot" disabled.
And when version 16 is released, it should only work with "SecureBoot" disabled.

gyro

Post Reply